tree

package
v0.0.0-...-d115bb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2018 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(node *Tree, imageWidth int, imageHeight int) (*image.RGBA, error)

func Height

func Height(node *Tree) float64

func ToString

func ToString(node *Tree) string

func WriteNewick

func WriteNewick(filename string, node *Tree) error

Types

type Tree

type Tree struct {
	Name         string
	OnlyTopology bool
	BranchLength float64
	Left         *Tree
	Right        *Tree
}

func ReadNewick

func ReadNewick(filename string) (*Tree, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL