def dockable_init_dockcontrol ( self, dock_control ):
        dockable = self
        if self.element is not None:
            dockable = DockableViewElement( ui           = self._ui,
                                            element      = self.element,
                                            should_close = True )
            self._ui = None

        dock_control.set( dockable = dockable,
                          on_close = dockable.close_dock_control )

    #---------------------------------------------------------------------------
    #  Handles the closing of a DockControl containing a Traits UI:
    #---------------------------------------------------------------------------
Return the number of nodes in the graph.
dataset/ETHPy150Open enthought/traitsui/traitsui/dockable_view_element.py/DockableViewElement.dockable_init_dockcontrol--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.order