graph

package
v0.0.0-...-13097f4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_INT = int(^uint(0) >> 1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	// contains filtered or unexported fields
}

type Graph

type Graph struct {
	Nodes []*Node
}

func BuildGraph

func BuildGraph(rideCSV string, walkCSV string, idCSV string) Graph

func (*Graph) Traversal

func (g *Graph) Traversal(startTime int) ([]*Node, int)

Dijkstra's algorithm traversal of graph

func (*Graph) TraversalGo

func (g *Graph) TraversalGo(startTime int) ([]*Node, int)

type Node

type Node struct {
	Index     int
	Name      string
	WaitTimes []int
	Edges     []*Edge
	// contains filtered or unexported fields
}

func New

func New(idx int, name string, size int) *Node

Jump to

Keyboard shortcuts

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