Trait petgraph::visit::Data

source ·
pub trait Data: GraphBase {
    type NodeWeight;
    type EdgeWeight;
}
Expand description

Define associated data for nodes and edges

Required Associated Types§

Implementations on Foreign Types§

source§

impl<'a, G> Data for &'a Gwhere G: Data,

source§

impl<'a, G> Data for &'a mut Gwhere G: Data,

Implementors§

source§

impl<'a, G> Data for Frozen<'a, G>where G: Data,

source§

impl<E, Ix: IndexType> Data for List<E, Ix>

source§

impl<G> Data for Reversed<G>where G: Data,

source§

impl<G, F> Data for EdgeFiltered<G, F>where G: Data,

source§

impl<G, F> Data for NodeFiltered<G, F>where G: Data,

source§

impl<N, E, Ty> Data for GraphMap<N, E, Ty>where N: Copy + PartialEq, Ty: EdgeType,

§

type NodeWeight = N

§

type EdgeWeight = E

source§

impl<N, E, Ty, Ix> Data for Csr<N, E, Ty, Ix>where Ty: EdgeType, Ix: IndexType,

§

type NodeWeight = N

§

type EdgeWeight = E

source§

impl<N, E, Ty, Ix> Data for Graph<N, E, Ty, Ix>where Ix: IndexType,

§

type NodeWeight = N

§

type EdgeWeight = E

source§

impl<N, E, Ty, Ix> Data for StableGraph<N, E, Ty, Ix>where Ty: EdgeType, Ix: IndexType,

§

type NodeWeight = N

§

type EdgeWeight = E

source§

impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> Data for MatrixGraph<N, E, Ty, Null, Ix>

§

type NodeWeight = N

§

type EdgeWeight = E