graph

package
v0.0.0-...-e779027 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: Apache-2.0 Imports: 0 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 {
	Src  *Vertice
	Dest *Vertice
}

func CreateEdge

func CreateEdge(src, dest *Vertice) Edge

type Graph

type Graph struct {
	Vertices []Vertice
	Edges    []Edge
}

func CreateGraph

func CreateGraph() Graph

type Vertice

type Vertice struct {
	Id   string
	Name string
	Info string
}

func CreateVertice

func CreateVertice(id, name string) Vertice

func (*Vertice) GetId

func (v *Vertice) GetId() string

Jump to

Keyboard shortcuts

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