Get the length of the path (number of edges)
(&self)
| 126 | |
| 127 | /// Get the length of the path (number of edges) |
| 128 | pub fn length(&self) -> usize { |
| 129 | self.elements.iter().filter(|e| e.edge_id.is_some()).count() |
| 130 | } |
| 131 | |
| 132 | /// Get all node IDs in the path |
| 133 | pub fn get_nodes(&self) -> Vec<&str> { |
no test coverage detected