@FunctionalInterface
public static interface LowestCommonAncestorFinder.HeightFunction<N>
DiGraph into an int defining a topological
sort of all nodes.
Specifically, forall nodes (x, y) in G, (x above y) -> heightFn(x) > heightFn(y) &&
heightFn(x) == heightFn(y) -> (x incomparable y).
The result of this function must be consitent for each node during each search.
| Modifier and Type | Method and Description |
|---|---|
int |
measure(N node) |
int measure(N node)
Copyright © 2009-2020 Google. All Rights Reserved.