Trait rs_graph::wrapped::WrappedGraph [] [src]

pub trait WrappedGraph {
    type Graph;
    fn from_graph(g: Self::Graph) -> Self;
fn as_graph(&self) -> &Self::Graph; }

An embedded graph.

This trait is similar to the combination From<G> + Deref<Target=G> but specialized for graphs.

Associated Types

The embedded graph type.

Required Methods

Create the embedding structure from a graph.

Return a reference to the embedded graph.

Implementors