Class PlainEdge

java.lang.Object
  extended byPlainEdge
All Implemented Interfaces:
Edge

public class PlainEdge
extends java.lang.Object
implements Edge

This class implements the Edge interface. It supports no additional functionality.


Constructor Summary
PlainEdge(int source, int target, double weight)
          The class constructor.
 
Method Summary
 int source()
           
 int target()
           
 java.lang.String toString()
           
 double weight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlainEdge

public PlainEdge(int source,
                 int target,
                 double weight)
The class constructor.

Method Detail

source

public int source()
Specified by:
source in interface Edge
Returns:
the source node of the edge

target

public int target()
Specified by:
target in interface Edge
Returns:
the target node of the edge

weight

public double weight()
Specified by:
weight in interface Edge
Returns:
the weight of the edge

toString

public java.lang.String toString()