graph
Class Node
java.lang.Object
graph.Node
public class Node
- extends java.lang.Object
Representa um nó de um grafo.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Node
public Node(Graph g)
inDegree
public int inDegree()
outDegree
public int outDegree()
degree
public int degree()
goesTo
public boolean goesTo(Node n)
comesFrom
public boolean comesFrom(Node n)
adj
public boolean adj(Node n)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getGraph
public Graph getGraph()
getKey
public int getKey()
getSuccs
public List<Node> getSuccs()
getPreds
public List<Node> getPreds()