Returns `true` if the graph has no nodes.
(&self)
| 55 | |
| 56 | /// Returns `true` if the graph has no nodes. |
| 57 | pub fn is_empty(&self) -> bool { |
| 58 | self.nodes.is_empty() |
| 59 | } |
| 60 | |
| 61 | /// Add a node with the given external ID; returns its internal index. |
| 62 | pub fn add_node(&mut self, id: u64) -> usize { |
no outgoing calls