GraphEdge Struct Reference

Defines non-labelled edge of the directed graph. More...

#include <GraphRep.h>

Inheritance diagram for GraphEdge:
IntLabeledEdge PlanarGraphEdge PlanarGraphIntLabelledEdge PlanarGraphIntLabelledEdge

List of all members.

Public Member Functions

 GraphEdge ()
 GraphEdge (int t)
bool operator< (const GraphEdge &e) const
bool operator== (const GraphEdge &e) const
 GraphEdge (int t)
 Constructor for an edge. Argument t is a number of the target.
 GraphEdge ()
 Dummy constructor, not to be used, required for STL::map. Also, can be used to denote "failure" or "dead-end" edge.
GraphEdge inverse (int origin)
 Invert an edge.
bool operator< (const GraphEdge &e) const
 Check if one edge is less than the other.
bool operator== (const GraphEdge &e) const
 Check if two edges equal.
bool operator!= (const GraphEdge &e) const
 Check if two edges are not equal.

Public Attributes

int target
int theTarget
 The target of the edge (for out edges), or origin of the vertex (for in edges).

Detailed Description

Defines non-labelled edge of the directed graph.

The order on edges must be defined so that the edges with the least labels go first for folding to be correct.

Definition at line 26 of file GraphRep.h.


Constructor & Destructor Documentation

GraphEdge::GraphEdge (  )  [inline]

Definition at line 29 of file GraphRep.h.

Referenced by inverse().

GraphEdge::GraphEdge ( int  t  )  [inline]

Definition at line 32 of file GraphRep.h.

GraphEdge::GraphEdge ( int  t  )  [inline]

Constructor for an edge. Argument t is a number of the target.

Definition at line 41 of file GraphType.h.

GraphEdge::GraphEdge (  )  [inline]

Dummy constructor, not to be used, required for STL::map. Also, can be used to denote "failure" or "dead-end" edge.

Definition at line 44 of file GraphType.h.


Member Function Documentation

GraphEdge GraphEdge::inverse ( int  origin  )  [inline]

Invert an edge.

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 49 of file GraphType.h.

References GraphEdge().

bool GraphEdge::operator!= ( const GraphEdge e  )  const [inline]

Check if two edges are not equal.

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 61 of file GraphType.h.

References theTarget.

bool GraphEdge::operator< ( const GraphEdge e  )  const [inline]

Check if one edge is less than the other.

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 53 of file GraphType.h.

References theTarget.

bool GraphEdge::operator< ( const GraphEdge e  )  const [inline]

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 34 of file GraphRep.h.

References target.

bool GraphEdge::operator== ( const GraphEdge e  )  const [inline]

Check if two edges equal.

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 57 of file GraphType.h.

References theTarget.

bool GraphEdge::operator== ( const GraphEdge e  )  const [inline]

Reimplemented in IntLabeledEdge, PlanarGraphEdge, and PlanarGraphIntLabelledEdge.

Definition at line 35 of file GraphRep.h.

References target.


Member Data Documentation

Definition at line 37 of file GraphRep.h.

Referenced by operator<(), and operator==().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:47 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1