Graph
Class Node<K,N extends Node<K,N>>
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
succs
public java.util.List<N extends Node<K,N>> succs
preds
public java.util.List<N extends Node<K,N>> preds
Node
public Node(Graph<K,N> g,
K key)
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)