node copy(node v) const
Returns the node in the graph copy corresponding to v.
Data type for general directed graphs (adjacency list representation).
edge newEdge(node u, node v, T weight)
virtual ~EdgeWeightedGraphCopy()
NodeArray< node > m_vOrig
The corresponding node in the original graph.
void createEmpty(const Graph &G)
Associates the graph copy with G, but does not create any nodes or edges.
EdgeArray< T > m_edgeWeight
EdgeArray< List< edge > > m_eCopy
The corresponding list of edges in the graph copy.
Dynamic arrays indexed with edges.
GraphCopy & operator=(const GraphCopy &GC)
Assignment operator.
T weight(const edge e) const
edge newEdge(edge eOrig)
Creates a new edge (v,w) with original edge eOrig.
void createEmpty(const Graph &wG)
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
void initWGC(const EdgeWeightedGraphCopy &wGC, NodeArray< node > &vCopy, EdgeArray< edge > &eCopy)
Dynamic arrays indexed with nodes.
EdgeArray< edge > m_eOrig
The corresponding edge in the original graph.
const EdgeArray< T > & edgeWeights() const
Declaration of graph copy classes.
Class for the representation of edges.
Declaration of class EdgeWeightedGraph.
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
Encapsulates a pointer to a list element.
void setWeight(const edge e, T v)
const Graph & original() const
Returns a reference to the original graph.
NodeArray< node > m_vCopy
The corresponding node in the graph copy.
EdgeWeightedGraphCopy & operator=(const EdgeWeightedGraphCopy &wGC)
const Graph * m_pGraph
The original graph.
EdgeArray< ListIterator< edge > > m_eIterator
The position of copy edge in the list.
The namespace for all OGDF objects.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
bool valid() const
Returns true iff the iterator points to an element.
T weight(const edge e) const