tools

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCircular

func CheckCircular[T comparable](edges map[T][]T) (cycle []T)

检测图中的环并返回环的节点序列

func TopologicalSort

func TopologicalSort[T comparable](edges map[T][]T) (sorted []T, cycle []T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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