at.jku.ssw
Class Edge

java.lang.Object
  extended by at.jku.ssw.Edge

public class Edge
extends java.lang.Object

An edge of a graph.


Nested Class Summary
static class Edge.Kind
           
 
Field Summary
 Vertex end
           
 Edge.Kind kind
           
 Vertex start
           
 int weight
           
 
Constructor Summary
Edge(Vertex start, Vertex end)
          Creates a directed edge.
Edge(Vertex start, Vertex end, Edge.Kind kind)
          Creates an edge with the specified kind, directed or undirected.
Edge(Vertex start, Vertex end, int weight, Edge.Kind kind)
          Creates an edge with the specified weight and kind (directed or undirected).
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

public final Vertex start

end

public final Vertex end

weight

public final int weight

kind

public final Edge.Kind kind
Constructor Detail

Edge

public Edge(Vertex start,
            Vertex end)
Creates a directed edge.


Edge

public Edge(Vertex start,
            Vertex end,
            Edge.Kind kind)
Creates an edge with the specified kind, directed or undirected.


Edge

public Edge(Vertex start,
            Vertex end,
            int weight,
            Edge.Kind kind)
Creates an edge with the specified weight and kind (directed or undirected).