graph

package
v0.0.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: AGPL-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 Edge

type Edge struct {
	Extra any   `json:"extra"`
	From  *Node `json:"from"`
	To    *Node `json:"to"`
}

Edge -

type Graph

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

Graph -

func (*Graph) AddEdge

func (g *Graph) AddEdge(from, to *Node, extra any)

AddEdge -

func (*Graph) AddEdges

func (g *Graph) AddEdges(e []*Edge)

AddEdges -

func (*Graph) AddNode

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

AddNode -

func (*Graph) AddNodes

func (g *Graph) AddNodes(n []*Node)

AddNodes -

func (*Graph) Edges

func (g *Graph) Edges() []*Edge

Edges -

func (*Graph) Nodes

func (g *Graph) Nodes() []*Node

Nodes -

type Node

type Node struct {
	Type  string `json:"type"`
	ID    string `json:"id"`
	Label string `json:"label"`
}

Node -

Jump to

Keyboard shortcuts

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