Documentation
¶
Overview ¶
Package newick decodes and encodes Newick-formatted trees.
This package uses the format described in: https://en.wikipedia.org/wiki/Newick_format
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { Name string // Node name. May be empty. Distance float64 // Distance from parent. 0 is treated as none. Children []*Node // Child nodes. May be nil. }
A Node is a single node in a tree, along with the subtree that is under it.
func (*Node) MarshalText ¶ added in v0.1.17
MarshalText returns a condensed Newick-format representation of this node.
func (*Node) PostOrder ¶ added in v0.1.17
PostOrder returns an iterator over nodes in the tree. Every node is called after its children.
Does not make recursive calls.
Notes ¶
Bugs ¶
Comments are currently not supported.
Click to show internal directories.
Click to hide internal directories.