graph

package
v0.0.0-...-8859e38 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 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(sizeV int) Graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(v, w int)

func (*Graph) AdjacencyList

func (g *Graph) AdjacencyList(vertex int) []int

func (*Graph) Degree

func (g *Graph) Degree(vertex int) int

func (*Graph) Edges

func (g *Graph) Edges() int

func (*Graph) Vertices

func (g *Graph) Vertices() int

Jump to

Keyboard shortcuts

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