graph

package module
v0.0.0-...-73bd695 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: GPL-3.0 Imports: 0 Imported by: 1

README

graph

Graph written in Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Topology

func Topology(g *Graph) ([]int64, bool)

Types

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func NewGraph

func NewGraph(n, m int64) *Graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(a, b, c int64)

func (*Graph) DeleteEdge

func (g *Graph) DeleteEdge(ids ...int64)

func (*Graph) NumEdge

func (g *Graph) NumEdge() int64

type SCC

type SCC struct {
	// contains filtered or unexported fields
}

func SCCTarjan

func SCCTarjan(g *Graph) *SCC

Jump to

Keyboard shortcuts

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