pub struct AdjacencyEdgeDict<const ONE_WAY: bool> { /* private fields */ }
Expand description
Sparse, edge first, adjacency list
Space Complexity
- for undirected graph
- for directed graph
Node Time Complexity
This structure has very good performance for nodes
- Insert:
- Query:
- Removal:
- Count:
- Neighbors:
Edge Time Complexity
This structure has linear complexity across the edges
- Insert edge:
- Query edge:
- Removal edge:
- Count edges:
Trait Implementations§
Auto Trait Implementations§
impl<const ONE_WAY: bool> Freeze for AdjacencyEdgeDict<ONE_WAY>
impl<const ONE_WAY: bool> RefUnwindSafe for AdjacencyEdgeDict<ONE_WAY>
impl<const ONE_WAY: bool> Send for AdjacencyEdgeDict<ONE_WAY>
impl<const ONE_WAY: bool> Sync for AdjacencyEdgeDict<ONE_WAY>
impl<const ONE_WAY: bool> Unpin for AdjacencyEdgeDict<ONE_WAY>
impl<const ONE_WAY: bool> UnwindSafe for AdjacencyEdgeDict<ONE_WAY>
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