pub struct GraphColoring<T> { /* private fields */ }
Expand description

Defines a greedy graph coloring algorithm over a generic conflict graph.

Implementations

Add a conflict edge between a and b.

Add conflict edges between all given items.

provides a hashmap that gives the sharing frequencies

Given an ordering of Ts, find a mapping from nodes to Ts such that no node has a neighbor with the same T. keep_self_color indicates whether to keep the mapping of the node to itself in the returned HashMap (since nodes are “colors”)

Trait Implementations

Converts to this type from the input type.
Converts the given value to a String. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.