114 return *m_hypergraph;
137 return m_hypernodeMap[v];
149 return m_hyperedgeMap[e];
161 virtual void hypernodeDeleted(
hypernode v)
override;
164 virtual void hypernodeAdded(
hypernode v)
override;
167 virtual void hyperedgeDeleted(
hyperedge e)
override;
170 virtual void hyperedgeAdded(
hyperedge e)
override;
173 virtual void cleared()
override;
177 void constructCliqueRep();
179 void constructStarRep();
181 void constructTreeRep();
183 void hyperedgeToTree(
hyperedge e,
int degree);
187 void cloneHypernodes();
EdgeStandardType type() const
Returns the type of edge standard representation.
EdgeStandardType
Enumeration class of possible edge standard representations.
const List< node > & dummyNodes() const
Returns the list of dummy nodes.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
HyperedgeArray< List< edge > > m_edgeMap
The map from representation hyperedge to edges.
Dynamic arrays indexed with edges.
NodeArray< hypernode > m_hypernodeMap
The map from representation nodes to hypernodes.
for every hyperedge e = {v_1, ..., v_l} a single new dummy node v_e is introduced, moreover, v_e becomes the center of a new star connecting all hypernodes incident with e (ie. {v_1, v_e}, ..., {v_l, v_e} are added)
Abstract base class for observers on hypergraphs, that need to be informed about hypergraph changes (...
node nodeMap(hypernode v)
Returns the node associated with the hypernode.
Dynamic arrays indexed with nodes.
Declaration and implementation of EdgeArray class.
const Graph & constGraph() const
Returns a reference to the representation graph.
hyperedge hyperedgeMap(edge e)
Returns the hyperedge associated with the edge.
Graph m_graphRep
Edge standard representation of the hypergraph.
Doubly linked lists (maintaining the length of the list).
Declaration and a partial implementation of a Hypergraph class partly based on the original classes f...
hypernode hypernodeMap(node v)
Returns the hypernode associated with the node (if any).
Class for the representation of hypernodes.
no new dummy nodes are introduced, for every hyperedge e = (v_1, ..., v_l), we add a cliqie K_l conne...
Class for the representation of edges.
Class for the representation of nodes.
Declaration and implementation of NodeArray class.
Pure declaration header, find template implementation in Graph.h.
Declaration and implementation of hyperraph array classes based on Node/EdgeArray classes written by ...
const List< edge > & edgeMap(hyperedge e)
Returns the list of edges associated with the hyperedge.
HypernodeArray< node > m_nodeMap
The map from representation hypernodes to nodes.
for every hyperedge e a minimal subcubic tree connecting all hypernodes incident with e together is a...
Class for the representation of hyperedges.
The namespace for all OGDF objects.
EdgeArray< hyperedge > m_hyperedgeMap
The map from representation edge to hyperedges.
EdgeStandardType m_type
The type of edge standard representation.
List< node > m_dummyNodes
The list of all newly created nodes.
Edge standard representation of hypergraphs.
Dynamic arrays indexed with nodes.
const Hypergraph * m_hypergraph
The reference to the original hypergraph.
Dynamic arrays indexed with hypernodes.
const Hypergraph & hypergraph() const
Conversion to original hypergraph reference.