Returns `true` if the node exists in the graph.
(&self, id: NodeID)
| 307 | |
| 308 | /// Returns `true` if the node exists in the graph. |
| 309 | pub fn contains_node(&self, id: NodeID) -> bool { |
| 310 | self.nodes.contains(id.0) |
| 311 | } |
| 312 | |
| 313 | /// Get an immutable reference to the custom state of a node. |
| 314 | pub fn node_state<T: 'static>(&self, id: NodeID) -> Option<&T> { |