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

Function print_ordering

lib/node_ordering/ordering_tools.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "node_ordering/ordering_tools.h"
15
16void print_ordering(std::ostream &out, const std::vector<NodeID> &labels) {
17 out << labels.size() << std::endl;
18 for (size_t i = 0; i < labels.size(); ++i) {
19 out << (i + 1) << "\t" << (labels[i] + 1) << std::endl;
20 }
21}
22
23NodeWeight compute_reachable_set_size(graph_access &graph, NodeID node) {
24 NodeWeight result = graph.getNodeWeight(node) - 1;

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected