Find all nodes of a given kind.
(&self, kind: ProvenanceNodeKind)
| 380 | |
| 381 | /// Find all nodes of a given kind. |
| 382 | pub fn nodes_of_kind(&self, kind: ProvenanceNodeKind) -> Vec<&ProvenanceNode> { |
| 383 | self.nodes.iter().filter(|n| n.kind == kind).collect() |
| 384 | } |
| 385 | |
| 386 | /// Find all edges originating from a node. |
| 387 | pub fn edges_from(&self, node_id: &str) -> Vec<&ProvenanceEdge> { |