graph

package
v0.0.0-...-1c15890 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	From *Node
	To   *Node
	Text []string
}

type Graph

type Graph struct {
	EntryNodeID string
	// contains filtered or unexported fields
}

func Build

func Build(devfileData data.DevfileData) (*Graph, error)

func NewGraph

func NewGraph() *Graph

func (*Graph) AddEdge

func (o *Graph) AddEdge(from *Node, to *Node, text ...string) *Edge

func (*Graph) AddNode

func (o *Graph) AddNode(id string, text ...string) *Node

func (*Graph) ToFlowchart

func (o *Graph) ToFlowchart() string

type Node

type Node struct {
	ID   string
	Text []string
}

Jump to

Keyboard shortcuts

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