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

Method find_solutions

src/backtracking/graph_coloring.rs:129–136  ·  view source on GitHub ↗

Finds all solutions for the graph coloring problem. # Arguments `num_colors` - The number of colors available for coloring the graph. # Returns A `Result` containing an `Option` with a vector of solutions or a `GraphColoringError`.

(&mut self, num_colors: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

generate_coloringsFunction · 0.80

Calls 2

find_coloringsMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected