public final class Graph extends java.lang.Object implements java.lang.Iterable<ConnectedComponent>
Element
s.Constructor and Description |
---|
Graph(Expression body)
Builds a
Graph from an Expression tree. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ConnectedComponent> |
iterator()
List up
ConnectedComponent s of this graph in an order. |
java.lang.String |
toString() |
public Graph(Expression body)
Graph
from an Expression
tree.
Expression
given to the graph will be modified forever,
and it will not be able to create another Graph
.public java.util.Iterator<ConnectedComponent> iterator()
ConnectedComponent
s of this graph in an order.iterator
in interface java.lang.Iterable<ConnectedComponent>
public java.lang.String toString()
toString
in class java.lang.Object