graph

package module
v0.1.4-0...-753d322 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	Nodes map[string]*node.Node
}

func GraphFromFile

func GraphFromFile(path string) (Graph, error)

func (Graph) AddEdge

func (g Graph) AddEdge(from, to *node.Node)

func (Graph) AddNode

func (g Graph) AddNode(n *node.Node)

func (Graph) GetSubGraphs

func (g Graph) GetSubGraphs() [][]*node.Node

func (Graph) HasEdge

func (g Graph) HasEdge(from, to *node.Node) bool

func (Graph) HasNode

func (g Graph) HasNode(n *node.Node) bool

Jump to

Keyboard shortcuts

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