58 return m_adj == other.
m_adj;
62 return m_adj != other.
m_adj;
75 if (m_adj == m_adjFirst)
130 m_id(id), m_size(0), m_pEmbedding(pEmbedding), entries(adjFirst) { }
134 m_id(
id), m_size(0), entries(adjFirst) { }
148 int size()
const {
return m_size; }
159 return (adj != entries.
m_adjFirst) ? adj :
nullptr;
212 #ifndef OGDF_MEMORY_POOL_NTS 247 bool valid()
const {
return m_cpGraph !=
nullptr; }
260 operator const Graph &()
const {
return getGraph(); }
299 face chooseFace(std::function<
bool(
face)> includeFace = [](
face) {
return true; },
bool isFastTest =
true)
const;
302 face maximalFace()
const;
308 return m_externalFace;
330 void init(
const Graph &G);
341 bool consistencyCheck();
372 return findCommonFace(v, w, adj, left);
461 operator const Graph &()
const {
return getGraph(); }
463 operator Graph &() {
return getGraph(); }
577 void reverseEdge(
edge e);
583 void removeDeg1(
node v);
void init(Graph &G)
Initializes the embedding for graph G.
int m_size
The size of the face.
face lastFace() const
Returns the last face in the list of all faces.
void setExternalFace(face f)
Sets the external face to f.
Data type for general directed graphs (adjacency list representation).
CombinatorialEmbedding(Graph &G)
Creates a combinatorial embedding of graph G.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
FaceAdjIterator & operator++()
#define OGDF_AUGMENT_COMPARER(type)
Add this macro to your class to turn it into a full comparer.
adjEntry adjSource() const
Returns the corresponding adjacancy entry at source node.
Declaration and implementation of AdjEntryArray class.
Combinatorial embeddings of planar graphs.
int m_faceIdCount
The index assigned to the next created face.
CombinatorialEmbedding()
Creates a combinatorial embedding associated with no graph.
face pred() const
Returns the predecessor in the list of all faces.
Forward iterator for adjacency entries in a face.
adjEntry firstAdj() const
Returns the first adjacency element in the face.
bool isBridge(edge e) const
Dynamic arrays indexed with adjacency entries.
adjEntry operator*() const
std::mutex m_mutexRegArrays
The critical section for protecting shared acces to register/unregister methods.
GraphObject * tail() const
Returns the last element in the list.
int m_faceArrayTableSize
The current table size of face arrays.
adjEntry findCommonFace(const node v, const node w, bool left=true) const
Identifies a common face of two nodes and returns the respective adjacency entry. ...
face rightFace(adjEntry adj) const
Returns the face to the right of adj, i.e., the face containing adj.
adjEntry faceCycleSucc() const
Returns the cyclic successor in face.
int size() const
Returns the number of elements in the container.
internal::GraphObjectContainer< FaceElement > faces
The container containing all face objects.
face externalFace() const
Returns the external face.
int numberOfFaces() const
Returns the number of faces.
static int compare(const FaceElement &x, const FaceElement &y)
Standard Comparer.
FaceAdjContainer(adjEntry adjFirst)
Dynamic arrays indexed with faces of a combinatorial embedding.
AdjEntryArray< face > m_rightFace
The face to which an adjacency entry belongs.
FaceAdjIterator(adjEntry adj)
GraphObject * head() const
Returns the first element in the list.
Graph * m_pGraph
The associated graph.
const Graph * m_cpGraph
The associated graph.
int m_id
The index of the face.
ListPure< FaceArrayBase * > m_regFaceArrays
The external face.
int faceArrayTableSize() const
Returns the table size of face arrays associated with this embedding.
bool operator==(const FaceAdjIterator &other) const
internal::FaceAdjContainer entries
Container maintaining the adjacency entries in the face.
Faces in a combinatorial embedding.
int size() const
Returns the size of the face, i.e., the number of edges in the face.
Class for the representation of edges.
adjEntry twin() const
Returns the corresponding adjacency element associated with the same edge.
Copies of graphs supporting edge splitting.
The base class for objects used by (hyper)graphs.
Class for the representation of nodes.
Encapsulates a pointer to a list element.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
const Graph & getGraph() const
Returns the associated graph.
Container for the adjacency entries in a face.
bool operator!=(const FaceAdjIterator &other) const
face leftFace(adjEntry adj) const
Returns the face to the left of adj, i.e., the face containing the twin of adj.
adjEntry nextFaceEdge(adjEntry adj) const
Returns the successor of adj in the list of all adjacency elements in the face.
int index() const
Returns the index of the face.
The namespace for all OGDF objects.
FaceAdjIterator & operator=(FaceAdjIterator &other)
FaceAdjIterator(adjEntry adjFirst, adjEntry adj)
Lists of graph objects (like nodes, edges, etc.).
Combinatorial embeddings of planar graphs with modification functionality.
int maxFaceIndex() const
Returns the largest used face index.
face firstFace() const
Returns the first face in the list of all faces.
adjEntry adjTarget() const
Returns the corresponding adjacancy entry at target node.
const Graph & getGraph() const
Returns the associated graph of the combinatorial embedding.
face succ() const
Returns the successor in the list of all faces.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
bool valid() const
Returns whether the embedding is associated with a graph.
Abstract base class for face arrays.