Struct graph_rs::MapGraph [] [src]

pub struct MapGraph<M>(_);

Methods

impl<M> MapGraph<M>
[src]

[src]

Returns the inner Map of this graph.

Trait Implementations

impl<M> From<M> for MapGraph<M>
[src]

[src]

Performs the conversion.

impl<'m, N, W, M> DirectedWeightedGraph<'m, N, W> for MapGraph<M> where
    M: Map<'m, (N, N), W>,
    N: 'm + Eq + Clone,
    W: 'm, 
[src]

An iterator that iterates over all edges.

An iterator that iterates over all edges, giving mutable access to the weight. Read more

[src]

Returns an iterator over all the edges in this graph.

[src]

Returns an iterator over all the ediges in this graph, with mutable access to the weight. Read more

[src]

Adds an edge to this graph.

[src]

Removes an edge from the graph.

[src]

Gets a borrow to the weight of the requested edge, if it exist. Read more

[src]

Gets a mutable borrow to the weight of the requested edge, if it exist. Read more

[src]

Checks if a graph has an edge or not. Read more