GraphCopy< To, From > Class Template Reference
[Basic Graph Utilities]


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. #include <lemon/graph_utils.h>

List of all members.

Public Member Functions

 GraphCopy (To &_to, const From &_from)
 Constructor for the GraphCopy.
 ~GraphCopy ()
 Destructor of the GraphCopy.
template<typename NodeRef >
GraphCopynodeRef (NodeRef &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)
template<typename EdgeRef >
GraphCopyedgeRef (EdgeRef &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)
void run ()


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.


Generated on Thu Jun 4 04:04:34 2009 for LEMON by  doxygen 1.5.9