Iterable<ConnectedComponent>
public final class Graph extends Object implements Iterable<ConnectedComponent>
Element
s.Constructor | Description |
---|---|
Graph(Expression body) |
Builds a
Graph from an Expression tree. |
Modifier and Type | Method | Description |
---|---|---|
Iterator<ConnectedComponent> |
iterator() |
List up
ConnectedComponent s of this graph in an order. |
String |
toString() |
forEach, spliterator
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 Iterator<ConnectedComponent> iterator()
ConnectedComponent
s of this graph in an order.iterator
in interface Iterable<ConnectedComponent>
Copyright © 2018 Oracle Corporation. All rights reserved.