template<typename DGR>
class lemon::Undirector< DGR >
Undirector adaptor can be used for viewing a digraph as an undirected graph. All arcs of the underlying digraph are showed in the adaptor as an edge (and also as a pair of arcs, of course). This adaptor conforms to the Graph concept.
The adapted digraph can also be modified through this adaptor by adding or removing nodes or edges, unless the GR
template parameter is set to be const
.
- Template Parameters
-
DGR | The type of the adapted digraph. It must conform to the Digraph concept. It can also be specified to be const . |
- Note
- The
Node
type of this adaptor and the adapted digraph are convertible to each other, moreover the Edge
type of the adaptor and the Arc
type of the adapted digraph are also convertible to each other. (Thus the Arc
type of the adaptor is convertible to the Arc
type of the adapted digraph.)