copyUGraph()
function. #include <lemon/graph_utils.h>
Public Member Functions | |
UGraphCopy (To &_to, const From &_from) | |
Constructor for the GraphCopy. | |
~UGraphCopy () | |
Destructor of the GraphCopy. | |
template<typename NodeRef > | |
UGraphCopy & | nodeRef (NodeRef &map) |
template<typename NodeCrossRef > | |
UGraphCopy & | nodeCrossRef (NodeCrossRef &map) |
Copies the node cross references into the given map. | |
template<typename ToMap , typename FromMap > | |
UGraphCopy & | nodeMap (ToMap &tmap, const FromMap &map) |
Make copy of the given map. | |
UGraphCopy & | node (TNode &tnode, const Node &snode) |
template<typename EdgeRef > | |
UGraphCopy & | edgeRef (EdgeRef &map) |
template<typename EdgeCrossRef > | |
UGraphCopy & | edgeCrossRef (EdgeCrossRef &map) |
Copies the edge cross references into the given map. | |
template<typename ToMap , typename FromMap > | |
UGraphCopy & | edgeMap (ToMap &tmap, const FromMap &map) |
Make copy of the given map. | |
UGraphCopy & | edge (TEdge &tedge, const Edge &sedge) |
template<typename UEdgeRef > | |
UGraphCopy & | uEdgeRef (UEdgeRef &map) |
template<typename UEdgeCrossRef > | |
UGraphCopy & | uEdgeCrossRef (UEdgeCrossRef &map) |
Copies the undirected edge cross references into the given map. | |
template<typename ToMap , typename FromMap > | |
UGraphCopy & | uEdgeMap (ToMap &tmap, const FromMap &map) |
Make copy of the given map. | |
UGraphCopy & | uEdge (TUEdge &tuedge, const UEdge &suedge) |
void | run () |
UGraphCopy | ( | To & | _to, | |
const From & | _from | |||
) | [inline] |
It copies the content of the _from
graph into the _to
graph.
~UGraphCopy | ( | ) | [inline] |
Destructor of the GraphCopy
UGraphCopy& nodeRef | ( | NodeRef & | map | ) | [inline] |
Copies the node references into the given map.
UGraphCopy& nodeCrossRef | ( | NodeCrossRef & | map | ) | [inline] |
Copies the node cross references (reverse references) into the given map.
UGraphCopy& nodeMap | ( | ToMap & | tmap, | |
const FromMap & | map | |||
) | [inline] |
Makes copy of the given map for the newly created graph. The new map's key type is the to graph's node type, and the copied map's key type is the from graph's node type.
UGraphCopy& node | ( | TNode & | tnode, | |
const Node & | snode | |||
) | [inline] |
Make a copy of the given node.
UGraphCopy& edgeRef | ( | EdgeRef & | map | ) | [inline] |
Copies the edge references into the given map.
UGraphCopy& edgeCrossRef | ( | EdgeCrossRef & | map | ) | [inline] |
Copies the edge cross references (reverse references) into the given map.
UGraphCopy& edgeMap | ( | ToMap & | tmap, | |
const FromMap & | map | |||
) | [inline] |
Makes copy of the given map for the newly created graph. The new map's key type is the to graph's edge type, and the copied map's key type is the from graph's edge type.
UGraphCopy& edge | ( | TEdge & | tedge, | |
const Edge & | sedge | |||
) | [inline] |
Make a copy of the given edge.
UGraphCopy& uEdgeRef | ( | UEdgeRef & | map | ) | [inline] |
Copies the undirected edge references into the given map.
UGraphCopy& uEdgeCrossRef | ( | UEdgeCrossRef & | map | ) | [inline] |
Copies the undirected edge cross references (reverse references) into the given map.
UGraphCopy& uEdgeMap | ( | ToMap & | tmap, | |
const FromMap & | map | |||
) | [inline] |
Makes copy of the given map for the newly created graph. The new map's key type is the to graph's undirected edge type, and the copied map's key type is the from graph's undirected edge type.
UGraphCopy& uEdge | ( | TUEdge & | tuedge, | |
const UEdge & | suedge | |||
) | [inline] |
Make a copy of the given undirected edge.
void run | ( | ) | [inline] |
Executes the copies.