pub struct Subgraph {
pub nodes: Vec<TraversedNode>,
pub edges: Vec<TraversedEdge>,
}Expand description
A discovered subgraph: nodes in BFS first-discovery order plus the projection edges among them.
Nodes are unique by canonical element. Edges connect two discovered nodes and
are unique by canonical relation, ordered by ascending (source, target, relation).
§Performance
Iterating nodes or edges is O(node count) / O(edge count).
Fields§
§nodes: Vec<TraversedNode>Discovered nodes in BFS first-discovery order.
edges: Vec<TraversedEdge>Edges connecting two discovered nodes.
Implementations§
Trait Implementations§
impl Eq for Subgraph
impl StructuralPartialEq for Subgraph
Auto Trait Implementations§
impl Freeze for Subgraph
impl RefUnwindSafe for Subgraph
impl Send for Subgraph
impl Sync for Subgraph
impl Unpin for Subgraph
impl UnsafeUnpin for Subgraph
impl UnwindSafe for Subgraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more