Struct blossom::matching::Matching [] [src]

pub struct Matching { /* fields omitted */ }

Represents a matching in a graph.

Methods

impl Matching
[src]

Create a new matching from given edges

Returns a value indicating whether the matching is empty.

Returns the number of edges in the graph.

Exports all edges in a vector.

Exports all edges in a vector.

Gets the vertex that vertex is connected to. Panics if matching does not contain a vertex vertex.

Creates a contracted matching with edges between leafs removed.

Creates a expanded matching using the augmenting path.

Trait Implementations

impl Clone for Matching
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Matching
[src]

Formats the value using the given formatter.