nl.liacs.subdisc
Class DAG
java.lang.Object
nl.liacs.subdisc.DAG
public class DAG
- extends java.lang.Object
Constructor Summary |
DAG(int theSize)
|
DAG(java.util.List<Column> theTargets)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAG
public DAG(int theSize)
DAG
public DAG(java.util.List<Column> theTargets)
print
public void print()
getSize
public int getSize()
getNode
public NetworkNode getNode(int nd)
getName
public java.lang.String getName(int aNode)
addArc
public void addArc(int fromNode,
int toNode,
boolean onlyAdd)
removeArc
public boolean removeArc(int fromNode,
int toNode,
boolean onlyRemove)
addArcAcyclic
public boolean addArcAcyclic(int fromNode,
int toNode,
boolean onlyAdd)
fixDimensions
public void fixDimensions(int nd)
determineVStructures
public boolean[][] determineVStructures()
testVStructure
public boolean testVStructure(int x,
int y)