V
- vertex typepublic class BottomUp<V> extends Object implements GraphTraversal<V>
GraphTraversal.Node<V>
Constructor and Description |
---|
BottomUp(DAGraph<V,? extends Arc<V>> g)
Constructs a BottomUp traversal instance.
|
Modifier and Type | Method and Description |
---|---|
List<? extends GraphTraversal.Node<V>> |
getOrderedNodes()
Gets the list of visited nodes, in the order of being visited.
|
List<? extends GraphTraversal.Node<V>> |
getOrderedNodes(Collection<V> leaves)
Gets the list of visited nodes, in the order of being visited.
|
public List<? extends GraphTraversal.Node<V>> getOrderedNodes(Collection<V> leaves)
leaves
- the leave nodes, ordered by their anticipated visiting orderpublic List<? extends GraphTraversal.Node<V>> getOrderedNodes()
GraphTraversal
getOrderedNodes
in interface GraphTraversal<V>
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.