public final class TopologicalSort extends Object
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 © 2018 OpenDaylight. All rights reserved.