78 void init(
const Graph &G);
143 if (f ==
nullptr) {
return nullptr; }
171 m_vCopy[m_vOrig[v] = vOrig] = v;
187 m_eCopy[m_eOrig[e] = eOrig] = e;
199 virtual void delEdge(
edge e)
override;
206 virtual void delNode(
node v)
override;
352 edge copy(
edge e)
const {
return (m_eCopy[e].empty() ?
nullptr : m_eCopy[e].front()); }
368 return m_eCopy[e].front()->adjSource();
370 return m_eCopy[e].back()->adjTarget();
391 return e->
source() != original(
copy(e)->source());
400 bool isReversedCopyEdge (
edge e)
const;
417 m_vCopy[m_vOrig[v] = vOrig] = v;
429 virtual void delNode(
node v)
override;
437 virtual void delEdge(
edge e)
override;
440 virtual void clear()
override;
447 virtual edge split(
edge e)
override;
458 void unsplit(
edge eIn,
edge eOut)
override;
470 void setEdge(
edge eOrig,
edge eCopy);
476 void removePseudoCrossings();
498 void removeEdgePath(
edge eOrig);
550 void setOriginalEmbedding();
572 void insertEdgePathEmbedded(
584 void removeEdgePathEmbedded(
597 bool consistencyCheck()
const;
607 void init(
const Graph &G);
639 void createEmpty(
const Graph &G);
681 void initByActiveNodes(
const List<node> &nodeList,
705 void removeUnnecessaryCrossing(
node target() const
Returns the target node of the edge.
Declaration of singly linked lists and iterators.
bool isSource() const
Returns true iff this is the source adjacency entry of the corresponding edge.
edge theEdge() const
Returns the edge associated with this adjacency entry.
const Graph * m_pGraph
The original graph.
NodeArray< node > m_vOrig
The corresponding node in the original graph.
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.
virtual ~GraphCopySimple()
node newNode(node vOrig)
Creates a new node in the graph copy with original node vOrig.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
adjEntry original(adjEntry adj) const
Returns the adjacency entry in the original graph corresponding to adj.
adjEntry adjSource() const
Returns the corresponding adjacancy entry at source node.
node original(node v) const
Returns the node in the original graph corresponding to v.
NodeArray< node > m_vOrig
The corresponding node in the original graph.
edge original(edge e) const
Returns the edge in the original graph corresponding to e.
Declaration of CombinatorialEmbedding and face.
EdgeArray< List< edge > > m_eCopy
The corresponding list of edges in the graph copy.
Dynamic arrays indexed with edges.
node newNode(node vOrig)
Creates a new node in the graph copy with original node vOrig.
Singly linked lists (maintaining the length of the list).
edge copy(edge e) const
Returns the first edge in the list of edges coresponding to edge e.
Dynamic arrays indexed with nodes.
Declaration and implementation of EdgeArray class.
bool isReversed(edge e) const
Returns true iff edge e has been reversed.
EdgeArray< edge > m_eOrig
The corresponding edge in the original graph.
GraphCopy()
Default constructor (does nothing!).
static void copy(const T &from, T &to)
bool isDummy(edge e) const
Returns true iff e has no corresponding edge in the original graph.
edge newEdge(node v, node w)
Creates a new edge (v,w) and returns it.
const List< edge > & chain(edge e) const
Returns the list of edges coresponding to edge e.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
Copies of graphs with mapping between nodes and edges.
adjEntry original(adjEntry adj) const
Returns the adjacency entry in the original graph corresponding to adj.
EdgeArray< edge > m_eOrig
The corresponding edge in the original graph.
Class for the representation of nodes.
Declaration and implementation of NodeArray class.
NodeArray< node > m_vCopy
The corresponding node in the graph copy.
const Graph & original() const
Returns a reference to the original graph.
node original(node v) const
Returns the node in the original graph corresponding to v.
Info structure for maintaining connected components.
edge copy(edge e) const
Returns the edge in the graph copy corresponding to e.
Edges are oriented from right to left.
NodeArray< node > m_vCopy
The corresponding node in the graph copy.
node copy(node v) const
Returns the node in the graph copy corresponding to v.
edge newEdge(edge eOrig)
Creates a new edge in the graph copy with original edge eOrig.
bool isDummy(node v) const
Returns true iff v has no corresponding node in the original graph.
const Graph * m_pGraph
The original graph.
EdgeArray< edge > m_eCopy
The corresponding edge in the graph copy.
EdgeArray< ListIterator< edge > > m_eIterator
The position of copy edge in the list.
node source() const
Returns the source node of the edge.
adjEntry copy(adjEntry adj) const
Returns the adjacency entry in the copy graph corresponding to adj.
The namespace for all OGDF objects.
edge original(edge e) const
Returns the edge in the original graph corresponding to e.
node newNode()
Creates a new node and returns it.
bool isDummy(node v) const
Returns true iff v has no corresponding node in the original graph.
Combinatorial embeddings of planar graphs with modification functionality.
bool isDummy(edge e) const
Returns true iff e has no corresponding edge in the original graph.
adjEntry adjTarget() const
Returns the corresponding adjacancy entry at target node.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
adjEntry copy(adjEntry adj) const
Returns the adjacency entry in the graph copy corresponding to adj.