Expand description
Graph coloring algorithms.
ALGO-CL-001: vertex_coloring_greedy — heuristic greedy vertex coloring
with two ordering strategies (DSATUR and Colored-Neighbors).
Also provides three coloring validators:
is_vertex_coloring— check proper vertex coloringis_bipartite_coloring— check bipartite (2-color) vertex coloringis_edge_coloring— check proper edge coloring
Reference: references/igraph/src/misc/coloring.c (519 lines).
Structs§
- Bipartite
Coloring Result - Result of
is_bipartite_coloring.
Enums§
- Bipartite
Edge Direction - Edge direction pattern in a directed bipartite graph.
- Greedy
Coloring Heuristic - Heuristic ordering strategy for
vertex_coloring_greedy.
Functions§
- chromatic_
number_ upper_ bound - Compute an upper bound on the vertex chromatic number using
greedy
DSaturcoloring. - edge_
chromatic_ number - Return the number of distinct colors used by an edge coloring.
- edge_
coloring_ greedy - Compute a greedy edge coloring.
- is_
bipartite_ coloring - Checks whether the given boolean type assignment is a valid bipartite coloring, i.e. no two adjacent vertices have the same type. Self-loops are ignored.
- is_
edge_ coloring - Checks whether the given edge color assignment is a valid edge coloring, i.e. no two edges sharing a vertex have the same color. Self-loops are not considered adjacent to themselves.
- is_
vertex_ coloring - Checks whether the given color assignment is a valid vertex coloring, i.e. no two adjacent vertices share the same color. Self-loops are ignored.
- vertex_
chromatic_ number - Return the number of distinct colors used in a vertex coloring.
- vertex_
coloring_ greedy - Computes a vertex coloring using a greedy algorithm.