spf

package
v0.0.0-...-25519a5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNode

func FindNode(what string, where []cy.Node) (idx int, found bool)

FindNode checks whether a node exists in the list of nodes

Types

type BestPath

type BestPath struct {
	Path []string
}

BestPath is a list of nodes in a shortest path

type BestPaths

type BestPaths struct {
	Paths []BestPath
}

BestPaths is a list of BestPath objects

func GetBestPathNames

func GetBestPathNames(elements cy.Elements, src string, dst string) (BestPaths, error)

GetBestPathNames finds the shortest path(s) from src to dst, converting them to names

type PathSegment

type PathSegment struct {
	Src string
	Dst string
}

PathSegment is a pair of nodes

func GetPathSegments

func GetPathSegments(paths BestPaths) []PathSegment

GetPathSegments breaks a list of paths into a list of two-node segments

Jump to

Keyboard shortcuts

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