pandore::GEdge Class Reference

#include <graph.h>

List of all members.


Detailed Description

An edge between two graph nodes.

The class GEdge defines a undirected edge between two nodes. An edge is characterized by a weight and the index of the connected node.


Public Member Functions

 GEdge (Long n, GEdge *adj, Double w=1)
 GEdge (Long n, GEdge *adj, Long i, Double w=1)
 ~GEdge ()
Long Node () const
GEdge * Next () const
GEdge * Next (GEdge *n)
Long Item () const
Long Item (Long i)

Public Attributes

Double weight


Constructor & Destructor Documentation

pandore::GEdge::GEdge (  Long  n,
GEdge *  adj,
Double  w = 1
)  [inline]
 

Creates a new edge to the specified node, with the specified weight and the specified next edge.

Parameters:
n the connected node.
adj the next edge.
w the weight.

pandore::GEdge::GEdge (  Long  n,
GEdge *  adj,
Long  i,
Double  w = 1
)  [inline]
 

Creates a new edge to the specified node, with the specified weight and the specified next edge.

Parameters:
n the connected node.
adj the next edge.
i the identifier of the edge
w the weight.

pandore::GEdge::~GEdge (   )  [inline]
 

Deletes the node.


Member Function Documentation

Long pandore::GEdge::Item (  Long  i  )  [inline]
 

Sets the new index of the referenced object.

Parameters:
i the new index.
Returns:
the new index of the object.

Long pandore::GEdge::Item (   )  const [inline]
 

Returns the index of the referenced object.

Returns:
the index.

GEdge* pandore::GEdge::Next (  GEdge *  n  )  [inline]
 

Sets a new neighbourhood node.

Parameters:
n the neighbourhood edge.
Returns:
the neighbourhood edge.

GEdge* pandore::GEdge::Next (   )  const [inline]
 

Returns the next neighbourhood node.

Returns:
the next edge.

Long pandore::GEdge::Node (   )  const [inline]
 

Returns the number of the adjacent node.

Returns:
the number of the connected node.


Member Data Documentation

Double pandore::GEdge::weight
 

The valuation of the edge.


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

The Pantheon project
Image Team GREYC Laboratory
UMR CNRS 6072 - ENSICAEN - University of Caen, France
This page was last modified on 19 June 2015