stagetree

package module
v0.0.0-...-20f1dc8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

README

Stage Tree Diagram

Stage Tree Diagrams are tree or graph representations to describe evolutionary processes and outcomes that have discrete stages that are typically sequential and directional in nature.

Stage Tree Building Blocks

Nodes

A Stage Tree Diagram can represent both trees or graphs, and each node can be a "child" of zero or more nodes.

Tags
Stages
Outcomes

Documentation

Overview

Copyright 2023 by Paulo Queiroga. All rights reserved. Use of this source code is governed by the license that can be found in the LICENSE file.

Package stage-tree creates and manipulates stage tree diagrams based on provided data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlotStages

func PlotStages(graph *godraw.GraphModel, rootNode *Node) error

func PlotTree

func PlotTree(graph *godraw.GraphModel, root *Node) error

Types

type Node

type Node struct {
	Id    string
	Tag   string
	Stage string
	Nodes []*Node
	// contains filtered or unexported fields
}

A Node represents a vertex in the stage tree, plus references to its child nodes.

func NewNode

func NewNode(id, tag, stage string) *Node

NewNode returns a new Node with an empty sub-tree of nodes.

func (*Node) AddChild

func (root *Node) AddChild(child *Node)

AddChild adds the given Node to the subtree of the instance.

Directories

Path Synopsis
Command-Line Interface (CLI) for creating a new stage tree diagram with data from a Comma-Separated-Values (CSV) file.
Command-Line Interface (CLI) for creating a new stage tree diagram with data from a Comma-Separated-Values (CSV) file.

Jump to

Keyboard shortcuts

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