Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GraphCopy Class Template Reference
[General Graph Utilities]

#include <lemon/graph_utils.h>

List of all members.


Detailed Description

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

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


Public Member Functions

 GraphCopy (Target &_target, const Source &_source)
 Constructor for the GraphCopy.
template<typename NodeRef>
const GraphCopynodeRef (NodeRef &map) const
 Copies the node references into the given map.
template<typename NodeRef>
const GraphCopynodeCrossRef (NodeRef &map) const
 Reverse and copies the node references into the given map.
template<typename EdgeRef>
const GraphCopyedgeRef (EdgeRef &map) const
 Copies the edge references into the given map.
template<typename EdgeRef>
const GraphCopyedgeCrossRef (EdgeRef &map) const
 Reverse and copies the edge references into the given map.
template<typename TargetMap, typename SourceMap>
const GraphCopynodeMap (TargetMap &tMap, const SourceMap &sMap) const
 Make copy of the given map.
template<typename TargetMap, typename SourceMap>
const GraphCopyedgeMap (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.


Constructor & Destructor Documentation

GraphCopy 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 GraphCopy& nodeRef NodeRef &  map  )  const [inline]
 

Copies the node references into the given map.

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

Reverse and copies the node references into the given map.

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

Copies the edge references into the given map.

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

Reverse and copies the edge references into the given map.

const GraphCopy& 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 GraphCopy& 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 NodeRefMap& nodeRef  )  const [inline]
 

Gives back the stored node references.

const EdgeRefMap& edgeRef  )  const [inline]
 

Gives back the stored edge references.


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:15:36 2005 for LEMON by  doxygen 1.4.4