Find all nodes of a given kind.
(&self, kind: ProvenanceNodeKind)
| 406 | |
| 407 | /// Find all nodes of a given kind. |
| 408 | pub fn nodes_of_kind(&self, kind: ProvenanceNodeKind) -> Vec<&ProvenanceNode> { |
| 409 | self.nodes.iter().filter(|n| n.kind == kind).collect() |
| 410 | } |
| 411 | |
| 412 | /// Find all edges originating from a node. |
| 413 | pub fn edges_from(&self, node_id: &str) -> Vec<&ProvenanceEdge> { |