MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / enumerate_graph

Function enumerate_graph

src/graph/graph_enumeration.rs:13–24  ·  view source on GitHub ↗

This function creates a graph with vertices numbered from 1 to n for any input `Graph `. The result is in the form of Vec to make implementing other algorithms on the graph easier and help with performance. We expect that all vertices, even the isolated ones, to have an entry in `adj` (possibly an empty vector) */

(adj: &Graph<V>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

random_tree_heightFunction · 0.85
string_verticesFunction · 0.85
integer_verticesFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by 2

string_verticesFunction · 0.68
integer_verticesFunction · 0.68