fr.umlv.gramofone.graphs
Class Edge

java.lang.Object
  extended by fr.umlv.gramofone.graphs.Edge
All Implemented Interfaces:
java.io.Serializable

public class Edge
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Edge(int u, int v, float weight)
          Build a new undirected Edge {u,v}, with a weight
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getId()
           
 int getU()
           
 int getV()
           
 float getWeight()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(int u,
            int v,
            float weight)
Build a new undirected Edge {u,v}, with a weight

Parameters:
u -
v -
weight -
Method Detail

getU

public int getU()

getV

public int getV()

getWeight

public float getWeight()

getId

public int getId()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object