Class Vertex

java.lang.Object
  extended by Vertex
All Implemented Interfaces:
java.lang.Comparable<Vertex>

public class Vertex
extends java.lang.Object
implements java.lang.Comparable<Vertex>


Field Summary
 double dist
           
 java.util.List<Edge> edges
           
 int indegree
           
 java.lang.String name
           
 int nr
           
 Vertex prev
           
 boolean seen
           
 
Constructor Summary
Vertex(java.lang.String s)
           
 
Method Summary
 int compareTo(Vertex other)
           
 boolean hasEdge(Vertex w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

edges

public java.util.List<Edge> edges

nr

public int nr

indegree

public int indegree

dist

public double dist

seen

public boolean seen

prev

public Vertex prev
Constructor Detail

Vertex

public Vertex(java.lang.String s)
Method Detail

hasEdge

public boolean hasEdge(Vertex w)

compareTo

public int compareTo(Vertex other)
Specified by:
compareTo in interface java.lang.Comparable<Vertex>