MCPcopy Create free account
hub / github.com/LBANN/lbann / print

Function print

src/utils/graph.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace graph {
36
37void print(const std::set<El::Int>& nodes,
38 const std::map<El::Int, std::set<El::Int>>& edges,
39 std::ostream& os = std::cout)
40{
41 for (const auto& node : nodes) {
42 os << "node " << node << " neighbors :";
43 for (const auto& neighbor : get_neighbors(node, edges)) {
44 os << " " << neighbor;
45 }
46 os << "\n";
47 }
48}
49
50std::set<El::Int>
51get_neighbors(El::Int node, const std::map<El::Int, std::set<El::Int>>& edges)

Callers 15

lazy_compileFunction · 0.50
forwardMethod · 0.50
make_batch_scriptFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50
setup_experimentFunction · 0.50

Calls 1

get_neighborsFunction · 0.85

Tested by 15

setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40
setup_experimentFunction · 0.40