[][src]Module taxonomy::distances

Code for working with distance relationships in taxonomic trees and tracking weights assigned to different nodes in the tree.

Functions

all_weighted_paths

Given a taxonomy and a set of "weights," calculate the summed weight for every path to root. This is like maximum_weighted_path, but rather than just returning the best path, it returns all of the paths.

maximum_weighted_path

Given a taxonomy and a set of "weights," find the lineage that has the greatest summed weight.