Find all nodes of a given kind.
(&self, kind: ProvenanceNodeKind)
| 414 | |
| 415 | /// Find all nodes of a given kind. |
| 416 | pub fn nodes_of_kind(&self, kind: ProvenanceNodeKind) -> Vec<&ProvenanceNode> { |
| 417 | self.nodes.iter().filter(|n| n.kind == kind).collect() |
| 418 | } |
| 419 | |
| 420 | /// Find all edges originating from a node. |
| 421 | pub fn edges_from(&self, node_id: &str) -> Vec<&ProvenanceEdge> { |