MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / find_colorings

Method find_colorings

src/backtracking/graph_coloring.rs:105–118  ·  view source on GitHub ↗

Recursively finds all valid colorings for the graph. # Arguments `vertex` - The current vertex to be colored. `num_colors` - The number of colors available for coloring the graph.

(&mut self, vertex: usize, num_colors: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

find_solutionsMethod · 0.80

Calls 3

pushMethod · 0.80
is_color_validMethod · 0.80
num_verticesMethod · 0.45

Tested by

no test coverage detected