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
, { ... } }
Expand description

A graph that has a default edge property type, that is, has a default implementation to associated values with edges.

Required Associated Types

Provided Methods

Creates a new default edge property where the initial value associated with each edge is value.

Creates a new default edge property where the initial value associated with each edge e is produced by fun(e).

Implementations on Foreign Types

Implementors