UGraphCopy Class Template Reference
[General Graph Utilities]

#include <lemon/graph_utils.h>

List of all members.


Detailed Description

template<typename Target, typename Source>
class lemon::UGraphCopy< Target, Source >

Class to copy an undirected graph to an other graph (duplicate a graph). The simplest way of using it is through the copyUGraph() function.


Public Member Functions

 UGraphCopy (Target &_target, const Source &_source)
 Constructor for the UGraphCopy.
template<typename NodeRef>
const UGraphCopynodeRef (NodeRef &map) const
 Copies the node references into the given map.
template<typename NodeRef>
const UGraphCopynodeCrossRef (NodeRef &map) const
 Reverse and copies the node references into the given map.
template<typename EdgeRef>
const UGraphCopyedgeRef (EdgeRef &map) const
 Copies the edge references into the given map.
template<typename EdgeRef>
const UGraphCopyedgeCrossRef (EdgeRef &map) const
 Reverse and copies the undirected edge references into the given map.
template<typename EdgeRef>
const UGraphCopyuEdgeRef (EdgeRef &map) const
 Copies the undirected edge references into the given map.
template<typename EdgeRef>
const UGraphCopyuEdgeCrossRef (EdgeRef &map) const
 Reverse and copies the undirected edge references into the given map.
template<typename TargetMap, typename SourceMap>
const UGraphCopynodeMap (TargetMap &tMap, const SourceMap &sMap) const
 Make copy of the given map.
template<typename TargetMap, typename SourceMap>
const UGraphCopyedgeMap (TargetMap &tMap, const SourceMap &sMap) const
 Make copy of the given map.
template<typename TargetMap, typename SourceMap>
const UGraphCopyuEdgeMap (TargetMap &tMap, const SourceMap &sMap) const
 Make copy of the given map.
const NodeRefMap & nodeRef () const
 Gives back the stored node references.
const EdgeRefMap & edgeRef () const
 Gives back the stored edge references.
const UEdgeRefMap & uEdgeRef () const
 Gives back the stored uedge references.


Constructor & Destructor Documentation

UGraphCopy Target &  _target,
const Source &  _source
[inline]
 

It copies the content of the _source graph into the _target graph. It creates also two references, one beetween the two nodeset and one beetween the two edgesets.


Member Function Documentation

const UGraphCopy& nodeRef NodeRef &  map  )  const [inline]
 

Copies the node references into the given map.

const UGraphCopy& nodeCrossRef NodeRef &  map  )  const [inline]
 

Reverse and copies the node references into the given map.

const UGraphCopy& edgeRef EdgeRef &  map  )  const [inline]
 

Copies the edge references into the given map.

const UGraphCopy& edgeCrossRef EdgeRef &  map  )  const [inline]
 

Reverse and copies the undirected edge references into the given map.

const UGraphCopy& uEdgeRef EdgeRef &  map  )  const [inline]
 

Copies the undirected edge references into the given map.

const UGraphCopy& uEdgeCrossRef EdgeRef &  map  )  const [inline]
 

Reverse and copies the undirected edge references into the given map.

const UGraphCopy& nodeMap TargetMap tMap,
const SourceMap sMap
const [inline]
 

Makes copy of the given map for the newly created graph. The new map's key type is the target graph's node type, and the copied map's key type is the source graph's node type.

const UGraphCopy& edgeMap TargetMap tMap,
const SourceMap sMap
const [inline]
 

Makes copy of the given map for the newly created graph. The new map's key type is the target graph's edge type, and the copied map's key type is the source graph's edge type.

const UGraphCopy& uEdgeMap TargetMap tMap,
const SourceMap sMap
const [inline]
 

Makes copy of the given map for the newly created graph. The new map's key type is the target graph's edge type, and the copied map's key type is the source graph's edge type.

const NodeRefMap& nodeRef  )  const [inline]
 

Gives back the stored node references.

const EdgeRefMap& edgeRef  )  const [inline]
 

Gives back the stored edge references.

const UEdgeRefMap& uEdgeRef  )  const [inline]
 

Gives back the stored uedge references.


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:41:36 2006 for LEMON by  doxygen 1.4.6