topological_sort

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perform

func Perform[T comparable](graph Graph[T]) (map[T]int, bool)

Types

type Graph

type Graph[T comparable] map[T]Set[T]

func NewGraph

func NewGraph[T comparable]() Graph[T]

func (Graph[T]) Arrow

func (o Graph[T]) Arrow(from T, to T)

type Set

type Set[T comparable] map[T]*any

func (Set[T]) Pop

func (s Set[T]) Pop() (T, bool)

func (Set[T]) Push

func (s Set[T]) Push(v T)

Jump to

Keyboard shortcuts

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