| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private Map | |
| private final Map | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| private Graph. | |
| private Graph. | |
| public List | |
| public Set | |
| private Collection | |
| public Set | |
| public List | Returns: All the nodes that have an order with each other, sorted in one of the valid sorts.
|
| private void | |
| public boolean | |
| private static void | |
| private static void | |
| private void | |
| public void | |
| public String |
| comparator | back to summary |
|---|---|
| private final Comparator<Graph. | |
| m_independentNodes | back to summary |
|---|---|
| private Map<T, Graph. | |
| m_nodes | back to summary |
|---|---|
| private final Map<T, Graph. | |
| m_strictlySortedNodes | back to summary |
|---|---|
| private List<T> m_strictlySortedNodes | |
| Graph | back to summary |
|---|---|
| public Graph(Comparator<Graph. | |
| addNode | back to summary |
|---|---|
| public void addNode(T tm) | |
| addPredecessor | back to summary |
|---|---|
| public void addPredecessor(T tm, T predecessor) | |
| dumpSortedNodes | back to summary |
|---|---|
| private void dumpSortedNodes() | |
| findNode | back to summary |
|---|---|
| private Graph. | |
| findNodeWithNoPredecessors | back to summary |
|---|---|
| private Graph. | |
| findPredecessors | back to summary |
|---|---|
public List
| |
| getIndependentNodes | back to summary |
|---|---|
public Set
| |
| getNodes | back to summary |
|---|---|
| private Collection | |
| getPredecessors | back to summary |
|---|---|
| public Set | |
| getStrictlySortedNodes | back to summary |
|---|---|
public List
| |
| initializeIndependentNodes | back to summary |
|---|---|
| private void initializeIndependentNodes() | |
| isIndependent | back to summary |
|---|---|
| public boolean isIndependent(T object) | |
| log | back to summary |
|---|---|
| private static void log(String s) | |
| log | back to summary |
|---|---|
| private static void log(Supplier<String> s) | |
| removeFromNodes | back to summary |
|---|---|
| private void removeFromNodes(List<Graph. Remove a node from a list of nodes and update the list of predecessors for all the remaining nodes. | |
| topologicalSort | back to summary |
|---|---|
| public void topologicalSort() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Graph. | |
| public T | |
| public Map | |
| public boolean | |
| public boolean | Returns: true if this predecessor was found and removedThe predecessor to remove o)
|
| public String |
| m_object | back to summary |
|---|---|
| private final T m_object | |
| m_predecessors | back to summary |
|---|---|
| private final Map<T, T> m_predecessors | |
| Node | back to summary |
|---|---|
| public Node(T tm) | |
| addPredecessor | back to summary |
|---|---|
| public void addPredecessor(T tm) | |
| clone | back to summary |
|---|---|
| public Graph. Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| getObject | back to summary |
|---|---|
| public T getObject() | |
| getPredecessors | back to summary |
|---|---|
| public Map | |
| hasPredecessors | back to summary |
|---|---|
| public boolean hasPredecessors() | |
| removePredecessor | back to summary |
|---|---|
public boolean removePredecessor(T o)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |