graph

package
v0.0.0-...-7aa1937 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 1 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 {
	// contains filtered or unexported fields
}

func NewGraph

func NewGraph() *Graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(origin, destiny string, value int)

func (*Graph) GetEdges

func (g *Graph) GetEdges(node string) []edge

func (*Graph) GetPath

func (g *Graph) GetPath(origin, destiny string) ([]string, int)

Jump to

Keyboard shortcuts

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