#include <ogdf/basic/HyperGraph.h>
|
| | HyperGraph () |
| | Creates an empty hyper graph. More...
|
| |
| AdjElement * | addNode (NodeElement *pNode, EdgeElement *pEdge, bool checkIfAlreadyExists=false) |
| | Makes pNode and pEdge incident; returns the corresponding HyperGraph::AdjElement. More...
|
| |
| void | clear () |
| | Clears the graph. More...
|
| |
| void | delAdjElement (AdjElement *pAdj) |
| | Removes one endpoint pAdj from a hyper edge. More...
|
| |
| void | delAdjElement (NodeElement *pNode, EdgeElement *pEdge) |
| | Removes the endpoint pNode from the hyper edge pEdge. More...
|
| |
| void | delEdge (EdgeElement *pEdge) |
| | Deletes hyper edge pEdge. More...
|
| |
| void | delNode (NodeElement *pNode) |
| | Deletes node pNode. More...
|
| |
| AdjElement * | findAdjElement (NodeElement *pNode, EdgeElement *pEdge) const |
| | Returns the AdjElement for pNode and pEdge. More...
|
| |
| AdjElement * | newAdjElement (NodeElement *pNode, EdgeElement *pEdge) |
| | Creates a new AdjElement which makes pNode and pEdge incident. More...
|
| |
| EdgeElement * | newEdge () |
| | Creates a new edge which is not incident to any nodes. More...
|
| |
| EdgeElement * | newEdge (NodeElement *pNode1, NodeElement *pNode2) |
| | Creates a new edge which is incident to the two nodes pNode1, pNode2. More...
|
| |
| NodeElement * | newNode () |
| | Creates a new node. More...
|
| |
| int | numberOfEdges () const |
| |
| int | numberOfNodes () const |
| |
| void | removeNode (NodeElement *pNode, EdgeElement *pEdge, bool removeDuplicates=false) |
| | If pNode and pEdge are incident, the corresponding AdjElement is removed. More...
|
| |
Definition at line 40 of file HyperGraph.h.
◆ edge
◆ node
◆ HyperGraph()
| ogdf::HyperGraph::HyperGraph |
( |
| ) |
|
|
inline |
◆ addNode()
◆ allocateAdjElement()
| AdjElement* ogdf::HyperGraph::allocateAdjElement |
( |
| ) |
|
|
inlineprotected |
◆ allocateEdgeElement()
◆ allocateNodeElement()
◆ clear()
| void ogdf::HyperGraph::clear |
( |
| ) |
|
|
inline |
◆ delAdjElement() [1/2]
Removes one endpoint pAdj from a hyper edge.
Definition at line 688 of file HyperGraph.h.
◆ delAdjElement() [2/2]
Removes the endpoint pNode from the hyper edge pEdge.
Definition at line 424 of file HyperGraph.h.
◆ delEdge()
◆ delNode()
◆ findAdjElement()
Returns the AdjElement for pNode and pEdge.
In case pNode and pEdge are not incident the function returns 0.
- Note
- The function requires time O(min(degree(pNode), cardinality(pEdge))).
- Parameters
-
| pNode | is the node. |
| pEdge | is the hyper edge. |
Definition at line 696 of file HyperGraph.h.
◆ freeAdjElement()
| void ogdf::HyperGraph::freeAdjElement |
( |
AdjElement * |
pAdj | ) |
|
|
inlineprotected |
◆ freeEdgeElement()
| void ogdf::HyperGraph::freeEdgeElement |
( |
EdgeElement * |
pEdge | ) |
|
|
inlineprotected |
◆ freeNodeElement()
| void ogdf::HyperGraph::freeNodeElement |
( |
NodeElement * |
pNode | ) |
|
|
inlineprotected |
◆ newAdjElement()
Creates a new AdjElement which makes pNode and pEdge incident.
- Note
- This function does not check if
pNode and pEdge are already incident. Hypergraphs can deal with duplicate AdjElements. However, for reasons of clarity it is not a good idea to make use of it.
- Parameters
-
| pNode | is the node. |
| pEdge | is the hyper edge. |
Definition at line 676 of file HyperGraph.h.
◆ newEdge() [1/2]
Creates a new edge which is not incident to any nodes.
Definition at line 667 of file HyperGraph.h.
◆ newEdge() [2/2]
Creates a new edge which is incident to the two nodes pNode1, pNode2.
Definition at line 402 of file HyperGraph.h.
◆ newNode()
◆ numberOfEdges()
| int ogdf::HyperGraph::numberOfEdges |
( |
| ) |
const |
|
inline |
◆ numberOfNodes()
| int ogdf::HyperGraph::numberOfNodes |
( |
| ) |
const |
|
inline |
◆ registerArray() [1/3]
◆ registerArray() [2/3]
◆ registerArray() [3/3]
◆ removeNode()
If pNode and pEdge are incident, the corresponding AdjElement is removed.
- Note
- The function requires time O(min(degree(pNode), cardinality(pEdge))).
- Parameters
-
| pNode | is the node. |
| pEdge | is the hyper edge. |
| removeDuplicates | is a flag, if it is set the function will remove any existing duplicates too. |
Definition at line 449 of file HyperGraph.h.
◆ unregisterArray() [1/3]
◆ unregisterArray() [2/3]
◆ unregisterArray() [3/3]
◆ HyperGraphTypes
◆ m_adjAllocator
◆ m_adjArrayController
◆ m_edgeAllocator
◆ m_edgeArrayController
◆ m_nodeAllocator
◆ m_nodeArrayController
◆ m_numEdges
| int ogdf::HyperGraph::m_numEdges |
|
protected |
◆ m_numNodes
| int ogdf::HyperGraph::m_numNodes |
|
protected |
◆ m_pFirstEdge
◆ m_pFirstNode
◆ m_pLastEdge
◆ m_pLastNode
The documentation for this class was generated from the following file: