#include <iostream>
using GNode = Graph::GraphNode;
int main(int argc, char* argv[]) {
if (argc < 3) {
std::cerr << "Usage: " << argv[0] << " filename num_threads" << std::endl;
return 1;
}
Graph g;
for (auto n : g) {
auto& sum = g.getData(n);
sum = 0;
for (auto e : g.edges(n)) {
sum += g.getEdgeData(e);
}
}
[&](GNode n) {
auto& sum = g.getData(n);
sum = 0;
for (auto e : g.edges(n)) {
sum += g.getEdgeData(e);
}
},
);
return 0;
}