| 31 | } |
| 32 | |
| 33 | std::size_t GeometryGraph::add_node(geos::geom::CoordinateXY coord) noexcept |
| 34 | { |
| 35 | const auto new_index = m_nodes.size(); |
| 36 | |
| 37 | auto point = m_factory.createPoint(coord); |
| 38 | auto node = GeometryGraph::Node(new_index, std::move(point)); |
| 39 | |
| 40 | m_nodes.push_back(std::move(node)); |
| 41 | |
| 42 | return new_index; |
| 43 | } |
| 44 | |
| 45 | void GeometryGraph::add_edge(std::size_t src, std::size_t dst) |
| 46 | { |
no test coverage detected