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

Function forall_nodes

app/node_ordering.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getNodeWeightMethod · 0.45
setNodeWeightMethod · 0.45

Tested by

no test coverage detected