| 19 | } |
| 20 | |
| 21 | void 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 | |
| 36 | void FakeGraph::AddConnection(Segment const & from, Segment const & to) |
| 37 | { |