public class ChuLiuEdmonds extends Object
| Constructor and Description |
|---|
ChuLiuEdmonds() |
| Modifier and Type | Method and Description |
|---|---|
static <V> Weighted<Arborescence<V>> |
getMaxArborescence(WeightedGraph<V> graph)
Find an optimal arborescence of the given graph.
|
static <V> Weighted<Arborescence<V>> |
getMaxArborescence(WeightedGraph<V> graph,
V root)
Find an optimal arborescence of the given graph `graph`, rooted in the given node `root`.
|
public static <V> Weighted<Arborescence<V>> getMaxArborescence(WeightedGraph<V> graph, V root)
public static <V> Weighted<Arborescence<V>> getMaxArborescence(WeightedGraph<V> graph)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.