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


Detailed Description

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

Class to copy an undirected graph to another graph (duplicate a graph). The simplest way of using it is through the copyUGraph() function. #include <lemon/graph_utils.h>

List of all members.

Public Member Functions

 UGraphCopy (To &_to, const From &_from)
 Constructor for the GraphCopy.
 ~UGraphCopy ()
 Destructor of the GraphCopy.
template<typename NodeRef >
UGraphCopynodeRef (NodeRef &map)
template<typename NodeCrossRef >
UGraphCopynodeCrossRef (NodeCrossRef &map)
 Copies the node cross references into the given map.
template<typename ToMap , typename FromMap >
UGraphCopynodeMap (ToMap &tmap, const FromMap &map)
 Make copy of the given map.
UGraphCopynode (TNode &tnode, const Node &snode)
template<typename EdgeRef >
UGraphCopyedgeRef (EdgeRef &map)
template<typename EdgeCrossRef >
UGraphCopyedgeCrossRef (EdgeCrossRef &map)
 Copies the edge cross references into the given map.
template<typename ToMap , typename FromMap >
UGraphCopyedgeMap (ToMap &tmap, const FromMap &map)
 Make copy of the given map.
UGraphCopyedge (TEdge &tedge, const Edge &sedge)
template<typename UEdgeRef >
UGraphCopyuEdgeRef (UEdgeRef &map)
template<typename UEdgeCrossRef >
UGraphCopyuEdgeCrossRef (UEdgeCrossRef &map)
 Copies the undirected edge cross references into the given map.
template<typename ToMap , typename FromMap >
UGraphCopyuEdgeMap (ToMap &tmap, const FromMap &map)
 Make copy of the given map.
UGraphCopyuEdge (TUEdge &tuedge, const UEdge &suedge)
void run ()


Constructor & Destructor Documentation

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


Member Function Documentation

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.


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