MCPcopy Create free account
hub / github.com/comaps/comaps / BuildSmallDirectedCyclicGraph

Function BuildSmallDirectedCyclicGraph

libs/routing/routing_tests/bfs_tests.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69DirectedGraph BuildSmallDirectedCyclicGraph()
70{
71 DirectedGraph graph;
72
73 // Inserts edges in a format: <source, target, weight>.
74 graph.AddEdge(0, 1, kWeight);
75 graph.AddEdge(1, 2, kWeight);
76 graph.AddEdge(2, 0, kWeight);
77
78 return graph;
79}
80} // namespace
81
82namespace routing_test

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

AddEdgeMethod · 0.45

Tested by

no test coverage detected