MCPcopy Create free account
hub / github.com/KaHIP/KaHIP / forall_nodes

Function forall_nodes

app/fast_node_ordering.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 // Make input_graph unweighted
55 bool has_node_weights = false;
56 forall_nodes(input_graph, node) {
57 if (input_graph.getNodeWeight(node) != 1) {
58 has_node_weights = true;
59 }
60 input_graph.setNodeWeight(node, 1);
61 } endfor
62 if (has_node_weights) {
63 std::cout << "There were nodes with weight != 1" << std::endl;
64 }

Callers 1

mainFunction · 0.70

Calls 2

getNodeWeightMethod · 0.45
setNodeWeightMethod · 0.45

Tested by

no test coverage detected