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

Function BuildDirectedCyclicGraph

libs/routing/routing_tests/bfs_tests.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55DirectedGraph BuildDirectedCyclicGraph()
56{
57 DirectedGraph graph;
58
59 // Inserts edges in a format: <source, target, weight>.
60 graph.AddEdge(0, 1, kWeight);
61 graph.AddEdge(1, 2, kWeight);
62 graph.AddEdge(2, 3, kWeight);
63 graph.AddEdge(3, 4, kWeight);
64 graph.AddEdge(4, 2, kWeight);
65
66 return graph;
67}
68
69DirectedGraph BuildSmallDirectedCyclicGraph()
70{

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

AddEdgeMethod · 0.45

Tested by

no test coverage detected