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

Method AddVertex

libs/routing/fake_graph.cpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void FakeGraph::AddVertex(Segment const & existentSegment, Segment const & newSegment, FakeVertex const & newVertex,
22 bool isOutgoing, bool isPartOfReal, Segment const & real)
23{
24 AddStandaloneVertex(newSegment, newVertex);
25 auto const & segmentFrom = isOutgoing ? existentSegment : newSegment;
26 auto const & segmentTo = isOutgoing ? newSegment : existentSegment;
27 m_outgoing[segmentFrom].insert(segmentTo);
28 m_ingoing[segmentTo].insert(segmentFrom);
29 if (isPartOfReal)
30 {
31 m_realToFake[real].insert(newSegment);
32 m_fakeToReal[newSegment] = real;
33 }
34}
35
36void FakeGraph::AddConnection(Segment const & from, Segment const & to)
37{

Callers 4

AddGateMethod · 0.80
AddStopMethod · 0.80
AddEndingMethod · 0.80
ConstructFakeGraphFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by 1

ConstructFakeGraphFunction · 0.64