Graph
Class Graph<K,N extends Node<K,N>>

java.lang.Object
  extended by Graph.Graph
Direct Known Subclasses:
FlowGraph, InterferenceGraph

public class Graph<K,N extends Node<K,N>>
extends java.lang.Object


Constructor Summary
Graph()
           
 
Method Summary
 void addEdge(N from, N to)
           
 N get(K k)
           
 java.util.Collection<N> nodes()
           
 void rmEdge(N from, N to)
           
 void show(java.io.PrintWriter out)
          Print a human-readable dump for debugging.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

get

public N get(K k)

nodes

public java.util.Collection<N> nodes()

size

public int size()

addEdge

public void addEdge(N from,
                    N to)

rmEdge

public void rmEdge(N from,
                   N to)

show

public void show(java.io.PrintWriter out)
Print a human-readable dump for debugging.