graph

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 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[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable](nodes ...T) *Graph[T]

func (*Graph[T]) AddEdge

func (g *Graph[T]) AddEdge(u, v T) bool

func (*Graph[T]) AddNode

func (g *Graph[T]) AddNode(node T) bool

func (*Graph[T]) IsCircular

func (g *Graph[T]) IsCircular() bool

Jump to

Keyboard shortcuts

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