pub struct BidirectedAdjacencyArray<IndexType: GraphIndexInteger, NodeData, EdgeData> { /* private fields */ }Implementations§
Source§impl<IndexType: GraphIndexInteger, NodeData, EdgeData> BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType: GraphIndexInteger, NodeData, EdgeData> BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
pub fn new( nodes: TaggedVec<NodeIndex<IndexType>, NodeData>, edges: TaggedVec<EdgeIndex<IndexType>, BidirectedEdge<IndexType, EdgeData>>, ) -> Self
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn iter_nodes(&self) -> impl Iterator<Item = NodeIndex<IndexType>>
pub fn iter_edges(&self) -> impl Iterator<Item = EdgeIndex<IndexType>>
pub fn iter_successors( &self, node: DirectedNodeIndex<IndexType>, ) -> impl Iterator<Item = (DirectedEdgeIndex<IndexType>, DirectedNodeIndex<IndexType>)>
pub fn node_data(&self, node: NodeIndex<IndexType>) -> &NodeData
pub fn edge( &self, edge: EdgeIndex<IndexType>, ) -> EdgeView<'_, IndexType, EdgeData>
pub fn directed_edge_data<'this>( &'this self, edge: DirectedEdgeIndex<IndexType>, ) -> DirectedEdgeDataView<'this, EdgeData>
Source§impl<IndexType: GraphIndexInteger, NodeData, EdgeData> BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType: GraphIndexInteger, NodeData, EdgeData> BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
Trait Implementations§
Auto Trait Implementations§
impl<IndexType, NodeData, EdgeData> Freeze for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType, NodeData, EdgeData> RefUnwindSafe for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType, NodeData, EdgeData> Send for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType, NodeData, EdgeData> Sync for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType, NodeData, EdgeData> Unpin for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
impl<IndexType, NodeData, EdgeData> UnwindSafe for BidirectedAdjacencyArray<IndexType, NodeData, EdgeData>
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