pub trait Data: GraphBase {
type NodeWeight;
type EdgeWeight;
}Expand description
Define associated data for nodes and edges
Required Associated Types§
type NodeWeight
type EdgeWeight
Implementations on Foreign Types§
Source§impl<'a, G> Data for &'a Gwhere
G: Data,
impl<'a, G> Data for &'a Gwhere
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<'a, G> Data for &'a mut Gwhere
G: Data,
impl<'a, G> Data for &'a mut Gwhere
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Implementors§
Source§impl<'a, G> Data for Frozen<'a, G>where
G: Data,
impl<'a, G> Data for Frozen<'a, G>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<G> Data for Reversed<G>where
G: Data,
impl<G> Data for Reversed<G>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<G, F> Data for EdgeFiltered<G, F>where
G: Data,
impl<G, F> Data for EdgeFiltered<G, F>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<G, F> Data for NodeFiltered<G, F>where
G: Data,
impl<G, F> Data for NodeFiltered<G, F>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<N, E, Ty> Data for GraphMap<N, E, Ty>
Available on crate feature graphmap only.
impl<N, E, Ty> Data for GraphMap<N, E, Ty>
Available on crate feature
graphmap only.type NodeWeight = N
type EdgeWeight = E
Source§impl<N, E, Ty, Ix> Data for Csr<N, E, Ty, Ix>
impl<N, E, Ty, Ix> Data for Csr<N, E, Ty, Ix>
type NodeWeight = N
type EdgeWeight = E
Source§impl<N, E, Ty, Ix> Data for Graph<N, E, Ty, Ix>where
Ix: IndexType,
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>
Available on crate feature stable_graph only.
impl<N, E, Ty, Ix> Data for StableGraph<N, E, Ty, Ix>
Available on crate feature
stable_graph only.