Struct matrixgraph::Digraph [] [src]

pub struct Digraph { /* fields omitted */ }

A digraph represented by a dense adjacency matrix of fixed size

The cells of the adjacency matrix are assigned values of type Option where a None value represents the absence of an edge.

Methods

impl Digraph
[src]

Creates a new digraph object with a fixed size.

Creates a new digraph object with a fixed size from a vector that is the row-wise representation of an adjacency matrix.

Returns the vector that is the row-wise representation of the adjacency matrix of the digraph.

Trait Implementations

impl PartialEq for Digraph
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Digraph
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Digraph
[src]

Formats the value using the given formatter.

impl BasicGraphMethods for Digraph
[src]

Returns the size of the graph, i.e. its number of vertices.

Returns the value of an edge of the graph.

Sets the value of an edge of the graph.