GraphCopy Class Template Reference
[Basic Graph Utilities]

#include <lemon/graph_utils.h>

List of all members.


Detailed Description

template<typename To, typename From>
class lemon::GraphCopy< To, From >

Class to copy a graph to another graph (duplicate a graph). The simplest way of using it is through the copyGraph() function.

Public Member Functions

 GraphCopy (To &_to, const From &_from)
 Constructor for the GraphCopy.
 ~GraphCopy ()
 Destructor of the GraphCopy.
template<typename NodeRef>
GraphCopynodeRef (NodeRef &map)
 Copies the node references into the given map.
template<typename NodeCrossRef>
GraphCopynodeCrossRef (NodeCrossRef &map)
 Copies the node cross references into the given map.
template<typename ToMap, typename FromMap>
GraphCopynodeMap (ToMap &tmap, const FromMap &map)
 Make copy of the given map.
GraphCopynode (TNode &tnode, const Node &snode)
 Make a copy of the given node.
template<typename EdgeRef>
GraphCopyedgeRef (EdgeRef &map)
 Copies the edge references into the given map.
template<typename EdgeCrossRef>
GraphCopyedgeCrossRef (EdgeCrossRef &map)
 Copies the edge cross references into the given map.
template<typename ToMap, typename FromMap>
GraphCopyedgeMap (ToMap &tmap, const FromMap &map)
 Make copy of the given map.
GraphCopyedge (TEdge &tedge, const Edge &sedge)
 Make a copy of the given edge.
void run ()
 Executes the copies.

Constructor & Destructor Documentation

GraphCopy ( To &  _to,
const From &  _from 
) [inline]

It copies the content of the _from graph into the _to graph.

~GraphCopy (  )  [inline]

Destructor of the GraphCopy


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Sat Apr 19 14:18:39 2008 for LEMON by  doxygen 1.5.5