Check if this edge connects the given nodes (in either direction)
(&self, node1: &str, node2: &str)
| 167 | |
| 168 | /// Check if this edge connects the given nodes (in either direction) |
| 169 | pub fn connects(&self, node1: &str, node2: &str) -> bool { |
| 170 | (self.from_node == node1 && self.to_node == node2) |
| 171 | || (self.from_node == node2 && self.to_node == node1) |
| 172 | } |
| 173 | |
| 174 | /// Check if this edge goes from node1 to node2 |
| 175 | pub fn goes_from_to(&self, from: &str, to: &str) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected