Class MColorer<T, C>
An m-coloring algorithm implementation.
Inherited Members
Namespace: Advanced.Algorithms.Graph
Assembly: Advanced.Algorithms.dll
Syntax
public class MColorer<T, C>
Type Parameters
| Name | Description |
|---|---|
| T | |
| C |
Methods
Color(IGraph<T>, C[])
Returns true if all vertices can be colored using the given colors in such a way so that no neighbours have same color.
Declaration
public MColorResult<T, C> Color(IGraph<T> graph, C[] colors)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph<T> | graph | |
| C[] | colors |
Returns
| Type | Description |
|---|---|
| MColorResult<T, C> |