public class ArgumentTree extends DefaultGraph<DeductiveArgumentNode>
Modifier and Type | Field and Description |
---|---|
private DeductiveArgumentNode |
rootNode
The root node of this tree.
|
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS
Constructor and Description |
---|
ArgumentTree(DeductiveArgumentNode root)
Creates an empty argument tree for the given root node.
|
Modifier and Type | Method and Description |
---|---|
DeductiveArgumentNode |
getRoot()
Returns the root node of this tree.
|
java.lang.String |
prettyPrint()
Returns a string representation of this argument tree.
|
private java.lang.String |
prettyPrint(DeductiveArgumentNode node,
java.util.Set<DeductiveArgumentNode> visitedNodes,
int depth)
Returns a string representation of the subtree rooted at
the given node.
|
add, add, areAdjacent, contains, existsDirectedPath, existsDirectedPath, getAdjancyMatrix, getChildren, getComplementGraph, getEdge, getEdges, getNeighbors, getNodes, getNumberOfNodes, getParents, getRestriction, getStronglyConnectedComponents, getStronglyConnectedComponents, getSubgraphs, getSubgraphs, hasSelfLoops, isWeightedGraph, iterator, toString
private DeductiveArgumentNode rootNode
public ArgumentTree(DeductiveArgumentNode root)
root
- the root node.public DeductiveArgumentNode getRoot()
public java.lang.String prettyPrint()
private java.lang.String prettyPrint(DeductiveArgumentNode node, java.util.Set<DeductiveArgumentNode> visitedNodes, int depth)
node
- some node.visitedNodes
- already visited nodes.depth
- depth for indentation.