copyGraph()
function. #include <lemon/graph_utils.h>
Public Member Functions | |
GraphCopy (To &_to, const From &_from) | |
Constructor for the GraphCopy. | |
~GraphCopy () | |
Destructor of the GraphCopy. | |
template<typename NodeRef > | |
GraphCopy & | nodeRef (NodeRef &map) |
template<typename NodeCrossRef > | |
GraphCopy & | nodeCrossRef (NodeCrossRef &map) |
Copies the node cross references into the given map. | |
template<typename ToMap , typename FromMap > | |
GraphCopy & | nodeMap (ToMap &tmap, const FromMap &map) |
Make copy of the given map. | |
GraphCopy & | node (TNode &tnode, const Node &snode) |
template<typename EdgeRef > | |
GraphCopy & | edgeRef (EdgeRef &map) |
template<typename EdgeCrossRef > | |
GraphCopy & | edgeCrossRef (EdgeCrossRef &map) |
Copies the edge cross references into the given map. | |
template<typename ToMap , typename FromMap > | |
GraphCopy & | edgeMap (ToMap &tmap, const FromMap &map) |
Make copy of the given map. | |
GraphCopy & | edge (TEdge &tedge, const Edge &sedge) |
void | run () |
GraphCopy | ( | To & | _to, | |
const From & | _from | |||
) | [inline] |
It copies the content of the _from
graph into the _to
graph.
GraphCopy& nodeRef | ( | NodeRef & | map | ) | [inline] |
Copies the node references into the given map.
GraphCopy& nodeCrossRef | ( | NodeCrossRef & | map | ) | [inline] |
Copies the node cross references (reverse references) into the given map.
GraphCopy& 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.
GraphCopy& node | ( | TNode & | tnode, | |
const Node & | snode | |||
) | [inline] |
Make a copy of the given node.
GraphCopy& edgeRef | ( | EdgeRef & | map | ) | [inline] |
Copies the edge references into the given map.
GraphCopy& edgeCrossRef | ( | EdgeCrossRef & | map | ) | [inline] |
Copies the edge cross references (reverse references) into the given map.
GraphCopy& 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.
GraphCopy& edge | ( | TEdge & | tedge, | |
const Edge & | sedge | |||
) | [inline] |
Make a copy of the given edge.
void run | ( | ) | [inline] |
Executes the copies.