Struct graphic::DirectedGraph [] [src]

pub struct DirectedGraph<A> { /* fields omitted */ }

A directed graph

Methods

impl<A> DirectedGraph<A>
[src]

[src]

Constructs a new empty directed graph

[src]

Retrieves the vertex at the given id

[src]

Retrieves the vertex at the given id

[src]

Retrieves a vertex value

[src]

Retrieves a vertex value

[src]

Retrieves the vertex value from the graph

[src]

Connects two vertices

[src]

Iterate over vertices in breadth-first order

[src]

[src]

[src]

Checks if the graph is cyclic

[src]

The out-degree of a vertex

[src]

The in-degree of a vertex

[src]

Returns an iterator over topologically-ordered vertices if the graph is acyclic

[src]

Returns a vertex with the weight of the path to it

Trait Implementations

impl<A: Display> Display for DirectedGraph<A>
[src]

[src]

Formats the value using the given formatter. Read more