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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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