Trait fera_graph::props::WithEdgeProp
[−]
[src]
pub trait WithEdgeProp<T>: WithEdge { type EdgeProp: EdgePropMutNew<Self, T>; fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T>
where
T: Clone, { ... } fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P
where
Self: EdgeList,
P: EdgePropMutNew<Self, T>,
F: FnMut(Edge<Self>) -> T,
T: Default + Clone, { ... } }
A graph that has a default edge property type, that is, has a default implementation to associated values with edges.
Associated Types
type EdgeProp: EdgePropMutNew<Self, T>
Provided Methods
fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T> where
T: Clone,
T: Clone,
Creates a new default edge property where the initial value associated with each edge is
value
.
fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P where
Self: EdgeList,
P: EdgePropMutNew<Self, T>,
F: FnMut(Edge<Self>) -> T,
T: Default + Clone,
Self: EdgeList,
P: EdgePropMutNew<Self, T>,
F: FnMut(Edge<Self>) -> T,
T: Default + Clone,
Creates a new default edge property where the initial value associated with each edge e
is produced by fun(e)
.
Implementations on Foreign Types
impl<'a, G: WithEdgeProp<T>, T> WithEdgeProp<T> for &'a G
[src]
type EdgeProp = RefEdgeProp<G, T>
fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T> where
T: Clone,
[src]
T: Clone,
fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P where
Self: EdgeList,
P: EdgePropMutNew<Self, T>,
F: FnMut(Edge<Self>) -> T,
T: Default + Clone,
[src]
Self: EdgeList,
P: EdgePropMutNew<Self, T>,
F: FnMut(Edge<Self>) -> T,
T: Default + Clone,
Implementors
impl<'a, G, T> WithEdgeProp<T> for Subgraph<'a, G> where
G: 'a + Graph + WithEdgeProp<T>, type EdgeProp = DelegateEdgeProp<G, T>;impl<'a, G, T> WithEdgeProp<T> for SpanningSubgraph<'a, G> where
G: 'a + WithEdge + WithVertexProp<Vec<Edge<G>>> + WithEdgeProp<T>, type EdgeProp = DelegateEdgeProp<G, T>;impl<V, K, T> WithEdgeProp<T> for AdjSet<V, K> where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
T: Clone, type EdgeProp = HashMapProp<K::Edge, T>;impl<T, K: CompleteEdgeKind> WithEdgeProp<T> for Complete<K> where
Complete<K>: WithEdgeIndexProp, type EdgeProp = VecEdgeProp<Complete<K>, T>;impl<T, V: Num, K: StaticEdgeKind> WithEdgeProp<T> for Static<V, K> type EdgeProp = VecEdgeProp<Self, T>;