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

Function forall_nodes

lib/mapping/construct_mapping.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 NodeWeight max_vol = 0;
186 NodeWeight max_vol_elem = 0;
187 forall_nodes(C, node) {
188 forall_out_edges(C, e, node) {
189 total_vol[node] += C.getEdgeWeight(e);
190 } endfor
191 if( total_vol[node] > max_vol ) {
192 max_vol = total_vol[node];
193 max_vol_elem = node;
194 }
195 } endfor
196
197 NodeWeight min_dist = std::numeric_limits< NodeWeight >::max();
198 NodeWeight min_dist_elem = 0;

Callers 1

set_graph_refMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected