dot

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name           string
	IsInternal     bool
	ExternalAction func(*messages.SAMessage, connectors.Connector, string, *interface{}, *bool)
	InternalAction func(interface{}, string, string, *messages.SAMessage, *interface{}, *bool)
	Conn           connectors.Connector // used by external actions only
}

type DOTCreator

type DOTCreator interface {
	Create(string) DOTGraph
}

func NewMADLLoader

func NewMADLLoader() DOTCreator

type DOTEdge

type DOTEdge struct {
	From   int
	To     int
	Action Action
}

type DOTGraph

type DOTGraph struct {
	NumNodes int
	EdgesDot [][]DOTEdge
}

func NewDOTGraph

func NewDOTGraph(n int) *DOTGraph

func (*DOTGraph) AddEdge

func (g *DOTGraph) AddEdge(u, v int, a string)

func (*DOTGraph) AdjacentEdges

func (g *DOTGraph) AdjacentEdges(u int) []DOTEdge

type DOTLoaderImpl

type DOTLoaderImpl struct{}

func (DOTLoaderImpl) Create

func (DOTLoaderImpl) Create(fileName string) DOTGraph

Jump to

Keyboard shortcuts

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