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

Method AddEdge

libs/routing/routing_tests/routing_algorithm.cpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace routing_test
18{
19void UndirectedGraph::AddEdge(Vertex u, Vertex v, Weight w)
20{
21 m_adjs[u].emplace_back(v, w);
22 m_adjs[v].emplace_back(u, w);
23}
24
25size_t UndirectedGraph::GetNodesNumber() const
26{

Callers 5

UNIT_TESTFunction · 0.45
BuildUndirectedGraphFunction · 0.45
BuildDirectedGraphFunction · 0.45
BuildDirectedCyclicGraphFunction · 0.45

Calls 1

emplace_backMethod · 0.45

Tested by 5

UNIT_TESTFunction · 0.36
BuildUndirectedGraphFunction · 0.36
BuildDirectedGraphFunction · 0.36
BuildDirectedCyclicGraphFunction · 0.36