Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::EdgeElement Class Reference

Class for the representation of edges. More...

#include <Graph_d.h>

Inheritance diagram for ogdf::EdgeElement:

ogdf::GraphElement

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.
AdjElementm_adjSrc
 Corresponding adjacancy entry at source node.
AdjElementm_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 530 of file Graph_d.h.


Constructor & Destructor Documentation

ogdf::EdgeElement::EdgeElement ( node  src,
node  tgt,
AdjElement adjSrc,
AdjElement adjTgt,
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.
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 548 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 557 of file Graph_d.h.


Member Function Documentation

int ogdf::EdgeElement::index (  )  const [inline]

Returns the index of the edge.

Definition at line 562 of file Graph_d.h.

node ogdf::EdgeElement::source (  )  const [inline]

Returns the source node of the edge.

Definition at line 564 of file Graph_d.h.

node ogdf::EdgeElement::target (  )  const [inline]

Returns the target node of the edge.

Definition at line 566 of file Graph_d.h.

adjEntry ogdf::EdgeElement::adjSource (  )  const [inline]

Returns the corresponding adjacancy entry at source node.

Definition at line 569 of file Graph_d.h.

adjEntry ogdf::EdgeElement::adjTarget (  )  const [inline]

Returns the corresponding adjacancy entry at target node.

Definition at line 571 of file Graph_d.h.

node ogdf::EdgeElement::opposite ( node  v  )  const [inline]

Returns the adjacent node different from v.

Definition at line 574 of file Graph_d.h.

bool ogdf::EdgeElement::isSelfLoop (  )  const [inline]

Definition at line 576 of file Graph_d.h.

edge ogdf::EdgeElement::succ (  )  const [inline]

Returns the successor in the list of all edges.

Definition at line 579 of file Graph_d.h.

edge ogdf::EdgeElement::pred (  )  const [inline]

Returns the predecessor in the list of all edges.

Definition at line 581 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 589 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 592 of file Graph_d.h.

void* ogdf::EdgeElement::operator new ( size_t  nBytes  )  [inline]

Reimplemented from ogdf::GraphElement.

Definition at line 594 of file Graph_d.h.

void* ogdf::EdgeElement::operator new ( size_t  ,
void *  p 
) [inline]

Reimplemented from ogdf::GraphElement.

Definition at line 594 of file Graph_d.h.

void ogdf::EdgeElement::operator delete ( void *  p,
size_t  nBytes 
) [inline]

Reimplemented from ogdf::GraphElement.

Definition at line 594 of file Graph_d.h.


Friends And Related Function Documentation

friend class Graph [friend]

Reimplemented from ogdf::GraphElement.

Definition at line 531 of file Graph_d.h.

friend class GraphList< EdgeElement > [friend]

Definition at line 532 of file Graph_d.h.


Member Data Documentation

node ogdf::EdgeElement::m_src [private]

The source node of the edge.

Definition at line 534 of file Graph_d.h.

node ogdf::EdgeElement::m_tgt [private]

The target node of the edge.

Definition at line 535 of file Graph_d.h.

AdjElement* ogdf::EdgeElement::m_adjSrc [private]

Corresponding adjacancy entry at source node.

Definition at line 536 of file Graph_d.h.

AdjElement* ogdf::EdgeElement::m_adjTgt [private]

Corresponding adjacancy entry at target node.

Definition at line 537 of file Graph_d.h.

int ogdf::EdgeElement::m_id [private]

Definition at line 538 of file Graph_d.h.


The documentation for this class was generated from the following file:

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:07 2007 by doxygen 1.5.4.