graph

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2017 License: GPL-3.0 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 struct {
	// contains filtered or unexported fields
}

Graph struct

func New

func New() *Graph

New function

func (*Graph) Edge

func (g *Graph) Edge(parent Node, child Node)

Edge adds an edge

func (*Graph) Toposort

func (g *Graph) Toposort(node Node) (sorted []string)

Toposort sorts topologically

type Node

type Node interface {
	ID() string
	Path() string
}

Node interface

Jump to

Keyboard shortcuts

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