This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | GraphUtils.
This class is a basic abstract class for representing a node. |
| public static interface | GraphUtils.
Basic interface for defining various dependency kinds. |
| public static interface | GraphUtils.
Optional interface for nodes supporting dot-based representation. |
| public static class | GraphUtils.
This visitor is used to dump the contents of a set of nodes of type |
| public static interface | |
| pack-priv abstract static class | |
| private static class | |
| public abstract static class | GraphUtils.
This class specializes Node, by adding elements that are required in order to perform Tarjan computation of strongly connected components. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <D, N extends GraphUtils. | |
| public static <D, N extends GraphUtils. | toDot(Collection<? extends N> nodes, String name, String header)
Debugging: dot representation of a set of connected nodes. |
| GraphUtils | back to summary |
|---|---|
| public GraphUtils() | |
| tarjan | back to summary |
|---|---|
| public static <D, N extends GraphUtils. Tarjan's algorithm to determine strongly connected components (SCCs) of a directed graph in linear time. Works on TarjanNode. | |
| toDot | back to summary |
|---|---|
| public static <D, N extends GraphUtils. Debugging: dot representation of a set of connected nodes. The resulting
dot representation will use | |
| Modifier and Type | Field and Description |
|---|---|
| public final D |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <A> void | accept(GraphUtils.
Implements com. Visitor method. |
| public abstract Collection | |
| public abstract GraphUtils. | |
| public String |
| data | back to summary |
|---|---|
| public final D data | |
| AbstractNode | back to summary |
|---|---|
| public AbstractNode(D data) | |
| accept | back to summary |
|---|---|
| public <A> void accept(GraphUtils. Implements com. Doc from com. Visitor method.
| |
| getDependenciesByKind | back to summary |
|---|---|
| public abstract Collection Get all dependencies of a given kind. | |
| getSupportedDependencyKinds | back to summary |
|---|---|
| public abstract GraphUtils. Get an array of the dependency kinds supported by this node. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Method and Description |
|---|---|
| public Properties | dependencyAttributes(N to, GraphUtils.
Retrieves the set of dot attributes associated with a given dependency. |
| public Properties |
| dependencyAttributes | back to summary |
|---|---|
| public Properties dependencyAttributes(N to, GraphUtils. Retrieves the set of dot attributes associated with a given dependency. | |
| nodeAttributes | back to summary |
|---|---|
| public Properties nodeAttributes() Retrieves the set of dot attributes associated with the node. | |
DottableNode
onto a string builder.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public void | visitDependency(GraphUtils.
Implements abstract com. Visitor action for a dependency between 'from' and 'to' with given kind. |
| public void | visitNode(N node, StringBuilder buf)
Implements abstract com. Visitor action for nodes. |
| protected static String |
| DotVisitor | back to summary |
|---|---|
| public DotVisitor() | |
| formatProperties | back to summary |
|---|---|
| protected String formatProperties(Properties p) | |
| visitDependency | back to summary |
|---|---|
| public void visitDependency(GraphUtils. Implements abstract com. Doc from com. Visitor action for a dependency between 'from' and 'to' with given kind.
| |
| visitNode | back to summary |
|---|---|
| public void visitNode(N node, StringBuilder buf) Implements abstract com. Doc from com. Visitor action for nodes.
| |
| wrap | back to summary |
|---|---|
| protected static String wrap(String s) | |
| Modifier and Type | Method and Description |
|---|---|
| public <A> void |
| accept | back to summary |
|---|---|
| public <A> void accept(GraphUtils. Visitor method. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public abstract void | visitDependency(GraphUtils.
Visitor action for a dependency between 'from' and 'to' with given kind. |
| public abstract void |
| NodeVisitor | back to summary |
|---|---|
| pack-priv NodeVisitor() | |
| visit | back to summary |
|---|---|
| public void visit(Collection<? extends N> nodes, A arg) Visitor entry point. | |
| visitDependency | back to summary |
|---|---|
| public abstract void visitDependency(GraphUtils. Visitor action for a dependency between 'from' and 'to' with given kind. | |
| visitNode | back to summary |
|---|---|
| public abstract void visitNode(N node, A arg) Visitor action for nodes. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | index
Unique node identifier. |
| pack-priv ListBuffer | sccs
List of SCCs found so far. |
| pack-priv ListBuffer | stack
Stack of all reachable nodes from given root. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private List | |
| private void | |
| private void |
| index | back to summary |
|---|---|
| pack-priv int index Unique node identifier. | |
| sccs | back to summary |
|---|---|
| pack-priv ListBuffer<List<N>> sccs List of SCCs found so far. | |
| stack | back to summary |
|---|---|
| pack-priv ListBuffer<N> stack Stack of all reachable nodes from given root. | |
| Tarjan | back to summary |
|---|---|
| private Tarjan() | |
| addSCC | back to summary |
|---|---|
| private void addSCC(N v) | |
| findSCC | back to summary |
|---|---|
| private List | |
| findSCC | back to summary |
|---|---|
| private void findSCC(N v) | |
| visitNode | back to summary |
|---|---|
| private void visitNode(N n) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(N o)
Implements java. Compares this object with the specified object for order. |
| public abstract Iterable |
| active | back to summary |
|---|---|
| pack-priv boolean active | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| lowlink | back to summary |
|---|---|
| pack-priv int lowlink | |
| TarjanNode | back to summary |
|---|---|
| public TarjanNode(D data) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(N o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getAllDependencies | back to summary |
|---|---|
| public abstract Iterable | |