| 176 | } |
| 177 | |
| 178 | void TransitGraph::GetTransitEdges(Segment const & segment, bool isOutgoing, EdgeListT & edges) const |
| 179 | { |
| 180 | CHECK(IsTransitSegment(segment), ("Nontransit segment passed to TransitGraph.")); |
| 181 | for (auto const & s : m_fake.GetEdges(segment, isOutgoing)) |
| 182 | { |
| 183 | auto const & from = isOutgoing ? segment : s; |
| 184 | auto const & to = isOutgoing ? s : segment; |
| 185 | edges.emplace_back(s, CalcSegmentWeight(to, EdgeEstimator::Purpose::Weight) + GetTransferPenalty(from, to)); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | set<Segment> const & TransitGraph::GetFake(Segment const & real) const |
| 190 | { |
no test coverage detected