Get all edges from a span (convenience method). Equivalent to `iter_adjacent` with full flag range, collecting results into a Vec.
(
&self,
node: GraphNode<NodeId>,
)
| 138 | /// Equivalent to `iter_adjacent` with full flag range, collecting |
| 139 | /// results into a Vec. |
| 140 | fn get_edges( |
| 141 | &self, |
| 142 | node: GraphNode<NodeId>, |
| 143 | ) -> Result<Vec<SerializedGraphEdge>, PristineError> { |
| 144 | let iter = self.iter_adjacent(node, EdgeFlags::empty(), EdgeFlags::all())?; |
| 145 | iter.collect() |
| 146 | } |
| 147 | |
| 148 | /// Get the type of a node (Change, Tag, or Attestation). |
| 149 | /// |