70 m_hierarchyParent.init(constGraph(),
nullptr);
71 m_upwardEdge.init(constGraph(),
false);
77 virtual void init(
const Graph &G,
long initAttr)
override {
78 init(const_cast<Graph &>(G), initAttr);
85 void insertGenMergers();
88 void undoGenMergers();
103 void undoStar(
node center,
bool restoreAllEdges);
108 return m_cliqueCircleSize[v];
112 return m_cliqueCirclePos[v];
121 void computeCliquePosition(
node center,
double rectMin);
122 void computeCliquePosition(
node center,
double rectMin,
const adjEntry &startAdj);
131 void computeCliquePosition(
List<node> &adjNodes,
node center,
double rectMin = -1.0);
144 return m_replacementEdge[e];
150 Graph& pureGraph()
const {
return *m_pG;}
154 void setAlign(
edge e,
bool b) {m_alignEdge[e] = b;}
162 void writeGML(
const char *fileName);
165 void writeGML(std::ostream &os);
170 void adjustHierarchyParents();
173 void sortEdgesFromLayout();
183 double x = 0.0,
double y = 0.0)
184 : m_width(width), m_height(height), m_x(x), m_y(y), m_edge(e), m_node(nullptr)
203 m_assClassList.pushBack(ac);
207 node v = m_pG->newNode();
210 m_associationClassModel[ac->
m_edge] = v;
228 modelAssociationClass((*it));
234 node dummy = m_pG->split(ac->
m_edge)->source();
239 m_pG->newEdge(ac->
m_node, dummy);
249 undoAssociationClass((*it));
279 m_pG->unsplit(dummy);
302 CliqueInfo(
node v,
int i) : m_target(v), m_edgeIndex(i) {}
Declaration of singly linked lists and iterators.
NodeArray< node > m_hierarchyParent
used to derive edge types for alignment in PlanRepUML (same hierarchyparent => edge connects (half)br...
Functionality for temporarily hiding edges in constant time.
virtual void init(const Graph &G, long attr)
Initializes the graph attributes for graph G.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
NodeArray< DRect > m_cliqueCircleSize
save the bounding box size of the circular drawing of the clique at center
edge theEdge() const
Returns the edge associated with this adjacency entry.
bool valid() const
Returns true iff the iterator points to an element.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration and implementation of AdjEntryArray class.
const SListPure< AssociationClass * > & assClassList() const
DRect cliqueRect(node v)
Returns the size of a circular drawing for a clique around center v.
EdgeArray< AssociationClass * > m_assClass
association class for list
NodeArray< DPoint > m_cliqueCirclePos
save the position of the node in the circular drawing of the clique
node modelAssociationClass(AssociationClass *ac)
Rectangles with real coordinates.
int degree() const
Returns the degree of the node (indegree + outdegree).
void modelAssociationClasses()
Inserts representation for association class in underlying graph.
SListPure< edge > m_mergeEdges
SListPure< AssociationClass * > m_assClassList
saves all accociation classes
Encapsulates a pointer to an ogdf::SList element.
void setDefaultCliqueCenterSize(double i)
Default size of inserted clique replacement center nodes.
Singly linked lists (maintaining the length of the list).
double getDefaultCliqueCenterSize()
Stores additional attributes of a graph (like layout information).
bool upwards(adjEntry a) const
Doubly linked lists (maintaining the length of the list).
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing...
no new dummy nodes are introduced, for every hyperedge e = (v_1, ..., v_l), we add a cliqie K_l conne...
EdgeArray< bool > m_replacementEdge
used to mark clique replacement edges
Class for the representation of edges.
adjEntry twin() const
Returns the corresponding adjacency element associated with the same edge.
AssociationClass(edge e, double width=1.0, double height=1.0, double x=0.0, double y=0.0)
virtual void init(Graph &G, long initAttr)
Class for the representation of nodes.
virtual void init(const Graph &G, long initAttr) override
Initializes the graph attributes for graph G.
static const long nodeType
Corresponds to node attribute type(node).
void setUpwards(adjEntry a, bool b)
Sets status of edges to be specially embedded (if alignment)
SListPure< node > m_centerNodes
center nodes introduced at clique replacement
double m_cliqueCenterSize
default size of inserted clique replacement center nodes
node createAssociationClass(edge e, double width=1.0, double height=1.0)
Adds association class to edge e.
const SListPure< node > & centerNodes()
Modelling of association classes.
The namespace for all OGDF objects.
bool isReplacement(edge e)
Returns true if edge was inserted during clique replacement.
const AssociationClass * assClass(edge e) const
void undoAssociationClass(AssociationClass *ac)
Removes the modeling of the association class without removing the information.
void undoAssociationClasses()
adjEntry firstAdj() const
Returns the first entry in the adjaceny list.
EdgeArray< node > m_associationClassModel
modelled classes are stored
Graph::HiddenEdgeSet * m_hiddenEdges
AdjEntryArray< bool > m_upwardEdge
used to classify edges for embedding with alignment
node theNode() const
Returns the node whose adjacency list contains this element.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.