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

java.lang.Object
  extended by Graph.Node
Direct Known Subclasses:
AssemNode, Node

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


Field Summary
 java.util.List<N> preds
           
 java.util.List<N> succs
           
 
Constructor Summary
Node(Graph<K,N> g, K key)
           
 
Method Summary
 java.util.List<N> adj()
           
 boolean adj(N n)
           
 boolean comesFrom(N n)
           
 int degree()
           
 boolean equals(N n)
           
 boolean goesTo(N n)
           
 int inDegree()
           
 int outDegree()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

succs

public java.util.List<N extends Node<K,N>> succs

preds

public java.util.List<N extends Node<K,N>> preds
Constructor Detail

Node

public Node(Graph<K,N> g,
            K key)
Method Detail

adj

public java.util.List<N> adj()

inDegree

public int inDegree()

outDegree

public int outDegree()

degree

public int degree()

goesTo

public boolean goesTo(N n)

comesFrom

public boolean comesFrom(N n)

adj

public boolean adj(N n)

toString

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

equals

public boolean equals(N n)