| 30 | |
| 31 | template <typename G> |
| 32 | struct Edge { |
| 33 | const G* g; |
| 34 | |
| 35 | Edge() |
| 36 | : g(nullptr) |
| 37 | {} |
| 38 | |
| 39 | Edge(const G& g) |
| 40 | : g(&g) |
| 41 | {} |
| 42 | |
| 43 | typedef typename boost::graph_traits<G>::edge_descriptor result_type; |
| 44 | typedef typename boost::graph_traits<G>::halfedge_descriptor argument_type; |
| 45 | |
| 46 | result_type operator()(argument_type h) const |
| 47 | { |
| 48 | return edge(h, *g); |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | template <typename G> |
| 53 | struct Opposite_edge { |
no outgoing calls