☰
petgraph
0.6.4
NodeIndex
Trait Implementations
NodeRef
In petgraph::adj
?
Type Alias
petgraph
::
adj
::
NodeIndex
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>
§
type
NodeId
= Ix
§
type
Weight
=
()
source
§
fn
id
(&self) -> Self::
NodeId
source
§
fn
weight
(&self) -> &Self::
Weight