pub fn add_node(&mut self, obj: N::Inner) -> NodeID {
        let node = Node::new(obj, self.id_counter);

        self.nodes.insert(self.id_counter, node);
        self.id_counter += 1;

        self.id_counter - 1
    }
/// Add a node to the graph, given the inner object.
/// Returns the ID of the created node.
Add a node to the graph, given the inner object.
Returns the ID of the created node.
Add a node to the graph given the inner object . Returns the ID of the created node .
pub fn add_node(&mut self, obj: N::Inner) -> NodeID {
        let node = Node::new(obj, self.id_counter);
        self.nodes.insert(self.id_counter, node);
        self.id_counter += 1;
        self.id_counter - 1
    }
pub fn add_node ( & mut self , obj : N :: Inner ) -> NodeID { let node = Node :: new ( obj , self . id_counter ) ; self . nodes . insert ( self . id_counter , node ) ; self . id_counter += 1 ; self . id_counter - 1 }
Add a node to the graph, given the inner object.
Add a node to the graph given the inner object .
&mut self
obj
N::Inner
&mut self
obj
N::Inner