graph

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 3 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
}

func NewGraph

func NewGraph() *Graph

func (*Graph) Add

func (g *Graph) Add(n *Node)

func (*Graph) AddEdge

func (g *Graph) AddEdge(n1, n2 *Node)

func (*Graph) Iterate

func (g *Graph) Iterate(f func(n *Node))

func (*Graph) Node

func (g *Graph) Node(obj types.Object) (nodes *Node)

func (*Graph) Traverse

func (g *Graph) Traverse(node *Node, f func(n *Node) bool)

type ID

type ID struct {
	Name     string
	RecvHash uint32
	TypeHash uint32
}

type Node

type Node struct {
	Object types.Object
	// contains filtered or unexported fields
}

func (*Node) AddValue

func (n *Node) AddValue(values ...types.TypeAndValue)

func (*Node) Values

func (n *Node) Values() []types.TypeAndValue

Jump to

Keyboard shortcuts

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