77 m_pGraph =
wGC.m_pGraph;
79 m_vOrig.init(*
this, 0);
80 m_eOrig.init(*
this, 0);
81 m_vCopy.init(*m_pGraph, 0);
82 m_eCopy.init(*m_pGraph);
83 m_eIterator.init(*
this, 0);
93 for (
node v : nodes) {
100 for (
edge e : m_pGraph->edges) {
102 for (it =
wGC.m_eCopy[e].begin(); it.
valid(); ++it) {
103 m_eIterator[
eCopy[*it]] = m_eCopy[e].pushBack(
eCopy[*it]);
107 m_edgeWeight.init(*
this);
110 m_edgeWeight[
eCopy[e]] =
wGC.weight(e);
118 m_edgeWeight.init(*
this);
122 m_edgeWeight[copy(
f)] =
wGC.weight(e);
149 m_edgeWeight.init(*
this);
150 for (
edge e : edges) {
151 m_edgeWeight[e] =
wG.weight(original(e));
159 m_edgeWeight.init(*
this);
165 m_edgeWeight[e] = weight;
172 m_edgeWeight[e] = weight;
Declaration of class EdgeWeightedGraph.
Declaration of graph copy classes.
Dynamic arrays indexed with edges.
Class for the representation of edges.
void createEmpty(const Graph &wG)
edge newEdge(node u, node v, T weight)
virtual ~EdgeWeightedGraphCopy()
const EdgeArray< T > & edgeWeights() const
void initWGC(const EdgeWeightedGraphCopy &wGC, NodeArray< node > &vCopy, EdgeArray< edge > &eCopy)
T weight(const edge e) const
EdgeArray< T > m_edgeWeight
void init(const EdgeWeightedGraph< T > &wG)
void setWeight(const edge e, T v)
EdgeWeightedGraphCopy & operator=(const EdgeWeightedGraphCopy &wGC)
Copies of graphs supporting edge splitting.
GraphCopy & operator=(const GraphCopy &GC)
Assignment operator.
void init(const Graph &G)
Re-initializes the copy using the graph G.
node copy(node v) const
Returns the node in the graph copy corresponding to v.
const Graph & original() const
Returns a reference to the original graph.
void createEmpty(const Graph &G)
Associates the graph copy with G, but does not create any nodes or edges.
edge newEdge(edge eOrig)
Creates a new edge (v,w) with original edge eOrig.
Data type for general directed graphs (adjacency list representation).
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
Encapsulates a pointer to a list element.
bool valid() const
Returns true iff the iterator points to an element.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.