distances

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distances

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

func NewDistancesEmpty

func NewDistancesEmpty() *Distances

func NewDistancesFromData

func NewDistancesFromData(data map[string]string) (*Distances, error)

NewDistancesFromData takes a map in the format "0": "10 21 30\n"

func NewDistancesFromSysfs

func NewDistancesFromSysfs(sysfsPath string) (*Distances, error)

func (*Distances) BetweenNodes

func (d *Distances) BetweenNodes(from, to int) (int, error)

Jump to

Keyboard shortcuts

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