Trait petgraph::data::FromElements [] [src]

pub trait FromElements: Create {
    fn from_elements<I>(iterable: I) -> Self
    where
        Self: Sized,
        I: IntoIterator<Item = Element<Self::NodeWeight, Self::EdgeWeight>>
, { ... } }

Create a graph from an iterator of elements.

Provided Methods

Implementors