Class for the representation of edges.
More...
#include <ogdf/basic/Graph_d.h>
List of all members.
Public Member Functions |
| int | index () const |
| | Returns the index of the edge.
|
| node | source () const |
| | Returns the source node of the edge.
|
| node | target () const |
| | Returns the target node of the edge.
|
| adjEntry | adjSource () const |
| | Returns the corresponding adjacancy entry at source node.
|
| adjEntry | adjTarget () const |
| | Returns the corresponding adjacancy entry at target node.
|
| node | opposite (node v) const |
| | Returns the adjacent node different from v.
|
| bool | isSelfLoop () const |
| edge | succ () const |
| | Returns the successor in the list of all edges.
|
| edge | pred () const |
| | Returns the predecessor in the list of all edges.
|
| bool | isIncident (node v) const |
| | Returns true iff v is incident to the edge.
|
| node | commonNode (edge e) const |
| | Returns the common node of the edge and e. Returns NULL if the two edges are not adjacent.
|
| void * | operator new (size_t nBytes) |
| void * | operator new (size_t, void *p) |
| void | operator delete (void *p, size_t nBytes) |
Private Member Functions |
| | EdgeElement (node src, node tgt, AdjElement *adjSrc, AdjElement *adjTgt, int id) |
| | Constructs an edge element (src,tgt).
|
| | EdgeElement (node src, node tgt, int id) |
| | Constructs an edge element (src,tgt).
|
Private Attributes |
| node | m_src |
| | The source node of the edge.
|
| node | m_tgt |
| | The target node of the edge.
|
| AdjElement * | m_adjSrc |
| | Corresponding adjacancy entry at source node.
|
| AdjElement * | m_adjTgt |
| | Corresponding adjacancy entry at target node.
|
| int | m_id |
Friends |
| class | Graph |
| class | GraphList< EdgeElement > |
Detailed Description
Class for the representation of edges.
Definition at line 533 of file Graph_d.h.
Constructor & Destructor Documentation
Constructs an edge element (src,tgt).
- Parameters:
-
| src | is the source node of the edge. |
| tgt | is the target node of the edge. |
| adjSrc | is the corresponding adjacency entry at source node. |
| adjTgt | is the corresponding adjacency entry at target node. |
| id | is the index of the edge. |
Definition at line 551 of file Graph_d.h.
| ogdf::EdgeElement::EdgeElement |
( |
node |
src, |
|
|
node |
tgt, |
|
|
int |
id | |
|
) |
| | [inline, private] |
Constructs an edge element (src,tgt).
- Parameters:
-
| src | is the source node of the edge. |
| tgt | is the target node of the edge. |
| id | is the index of the edge. |
Definition at line 560 of file Graph_d.h.
Member Function Documentation
| adjEntry ogdf::EdgeElement::adjSource |
( |
|
) |
const [inline] |
Returns the corresponding adjacancy entry at source node.
Definition at line 572 of file Graph_d.h.
| adjEntry ogdf::EdgeElement::adjTarget |
( |
|
) |
const [inline] |
Returns the corresponding adjacancy entry at target node.
Definition at line 574 of file Graph_d.h.
| node ogdf::EdgeElement::commonNode |
( |
edge |
e |
) |
const [inline] |
Returns the common node of the edge and e. Returns NULL if the two edges are not adjacent.
Definition at line 595 of file Graph_d.h.
| int ogdf::EdgeElement::index |
( |
|
) |
const [inline] |
Returns the index of the edge.
Definition at line 565 of file Graph_d.h.
| bool ogdf::EdgeElement::isIncident |
( |
node |
v |
) |
const [inline] |
Returns true iff v is incident to the edge.
Definition at line 592 of file Graph_d.h.
| bool ogdf::EdgeElement::isSelfLoop |
( |
|
) |
const [inline] |
| void ogdf::EdgeElement::operator delete |
( |
void * |
p, |
|
|
size_t |
nBytes | |
|
) |
| | [inline] |
| void* ogdf::EdgeElement::operator new |
( |
size_t |
, |
|
|
void * |
p | |
|
) |
| | [inline] |
| void* ogdf::EdgeElement::operator new |
( |
size_t |
nBytes |
) |
[inline] |
| node ogdf::EdgeElement::opposite |
( |
node |
v |
) |
const [inline] |
Returns the adjacent node different from v.
Definition at line 577 of file Graph_d.h.
| edge ogdf::EdgeElement::pred |
( |
|
) |
const [inline] |
Returns the predecessor in the list of all edges.
Definition at line 584 of file Graph_d.h.
| node ogdf::EdgeElement::source |
( |
|
) |
const [inline] |
Returns the source node of the edge.
Definition at line 567 of file Graph_d.h.
| edge ogdf::EdgeElement::succ |
( |
|
) |
const [inline] |
Returns the successor in the list of all edges.
Definition at line 582 of file Graph_d.h.
| node ogdf::EdgeElement::target |
( |
|
) |
const [inline] |
Returns the target node of the edge.
Definition at line 569 of file Graph_d.h.
Friends And Related Function Documentation
friend class Graph [friend] |
Member Data Documentation
Corresponding adjacancy entry at source node.
Definition at line 539 of file Graph_d.h.
Corresponding adjacancy entry at target node.
Definition at line 540 of file Graph_d.h.
The source node of the edge.
Definition at line 537 of file Graph_d.h.
The target node of the edge.
Definition at line 538 of file Graph_d.h.
The documentation for this class was generated from the following file: