@Beta public final class TopologicalSort extends Object
Note this class is non-public to allow for API transition.
Modifier and Type | Class and Description |
---|---|
static interface |
TopologicalSort.Edge
Interface for edges in graph that can be sorted topologically.
|
static class |
TopologicalSort.EdgeImpl
Basic Edge implementation.
|
static interface |
TopologicalSort.Node
Interface for nodes in graph that can be sorted topologically.
|
static class |
TopologicalSort.NodeImpl
Basic Node implementation.
|
Modifier and Type | Method and Description |
---|---|
static List<TopologicalSort.Node> |
sort(Set<TopologicalSort.Node> nodes)
Topological sort of dependent nodes in acyclic graphs.
|
public static List<TopologicalSort.Node> sort(Set<TopologicalSort.Node> nodes)
nodes
- graph nodesList
of TopologicalSort.Node
s. Order: Nodes with no dependencies starting.IllegalStateException
- when cycle is present in the graphCopyright © 2019 OpenDaylight. All rights reserved.