☰
NodeIndex
Trait Implementations
NodeRef
In petgraph::adj
?
Type Definition
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