public class WeightedTree extends Object implements Comparable<WeightedTree>
Constructor and Description |
---|
WeightedTree(Tree<Integer> tree,
double weight) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WeightedTree o) |
static String |
formatWeightedTree(WeightedTree wt,
Signature sig) |
Tree<Integer> |
getTree() |
double |
getWeight() |
String |
toString() |
String |
toString(Signature sig) |
public double getWeight()
public int compareTo(WeightedTree o)
compareTo
in interface Comparable<WeightedTree>
public static String formatWeightedTree(WeightedTree wt, Signature sig)
Copyright © 2017. All rights reserved.