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