graph

package
v0.0.0-...-d38ec11 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 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 DEdge

type DEdge[T comparable] struct {
	From T
	To   T
}

type Directed

type Directed[T comparable] struct {
	Nodes utils.Set[T]
	Edges []DEdge[T]
}

func NewDirected

func NewDirected[T comparable]() Directed[T]

func (*Directed[T]) AddEdge

func (g *Directed[T]) AddEdge(from, to T)

func (*Directed[T]) AddNode

func (g *Directed[T]) AddNode(node T)

func (*Directed[T]) LookupBackward

func (g *Directed[T]) LookupBackward(nodes ...T) utils.Set[T]

Jump to

Keyboard shortcuts

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