Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollapseLongPaths ¶
func CollapseLongPaths(t *Tree)
CollapseLongPaths will collapse all long chains in tree.
func CollapseLongPathsFromNode ¶
func CollapseLongPathsFromNode(t *Tree, nodeName string, bar *progressbar.ProgressBar)
CollapseLongPathsFromNode will collapse current node into children as long as it has single child. Will set name of this node to joined path from roots. Will set size to this child's size. Expecting Name containing either single value for current node.
func SetNamesFromPaths ¶
func SetNamesFromPaths(t *Tree)
SetNamesFromPaths will update each node to its path leaf as name.
Types ¶
type SumSizeImputer ¶
type SumSizeImputer struct {
EmptyLeafSize float64
}
SumSizeImputer will set sum of children into empty parents and fill children with contant.
func (SumSizeImputer) ImputeSize ¶
func (s SumSizeImputer) ImputeSize(t Tree)
func (SumSizeImputer) ImputeSizeNode ¶
func (s SumSizeImputer) ImputeSizeNode(t Tree, node string, bar *progressbar.ProgressBar)
Click to show internal directories.
Click to hide internal directories.