petgraph
0.6.5
Node
Index
Trait Implementations
NodeRef
In petgraph::
adj
petgraph
::
adj
Type Alias
NodeIndex
Copy item path
Source
pub type NodeIndex<Ix =
DefaultIx
> = Ix;
Expand description
Adjacency list node index type, a plain integer.
Trait Implementations
§
Source
§
impl<Ix:
IndexType
>
NodeRef
for
NodeIndex
<Ix>
Source
§
type
NodeId
= Ix
Source
§
type
Weight
=
()
Source
§
fn
id
(&self) -> Self::
NodeId
Source
§
fn
weight
(&self) -> &Self::
Weight