dfs_cycle

package
v0.0.0-...-8859e38 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

dfs_cycle finds a simple cycle in an undirected graph

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bag

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

func (*Bag) Add

func (b *Bag) Add(i int)

type Cycle

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

Cycle holds information about a possibly existing simple cycle

func NewDFSCyle

func NewDFSCyle(g *graph.Graph) *Cycle

func (*Cycle) Cycle

func (c *Cycle) Cycle() []int

func (*Cycle) HasCycle

func (c *Cycle) HasCycle() bool

func (*Cycle) HasParallelEdges

func (c *Cycle) HasParallelEdges(g *graph.Graph) bool

func (*Cycle) HasSelfLoop

func (c *Cycle) HasSelfLoop(g *graph.Graph) bool

Jump to

Keyboard shortcuts

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