#include <lemon/graph_utils.h>
copyGraph()
function.
Public Member Functions | |
GraphCopy (Target &_target, const Source &_source) | |
Constructor for the GraphCopy. | |
template<typename NodeRef> | |
const GraphCopy & | nodeRef (NodeRef &map) const |
Copies the node references into the given map. | |
template<typename NodeRef> | |
const GraphCopy & | nodeCrossRef (NodeRef &map) const |
Reverse and copies the node references into the given map. | |
template<typename EdgeRef> | |
const GraphCopy & | edgeRef (EdgeRef &map) const |
Copies the edge references into the given map. | |
template<typename EdgeRef> | |
const GraphCopy & | edgeCrossRef (EdgeRef &map) const |
Reverse and copies the edge references into the given map. | |
template<typename TargetMap, typename SourceMap> | |
const GraphCopy & | nodeMap (TargetMap &tMap, const SourceMap &sMap) const |
Make copy of the given map. | |
template<typename TargetMap, typename SourceMap> | |
const GraphCopy & | edgeMap (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. |
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.
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.
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.
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.