package
Version:
v0.0.0-...-b5dce0d
Opens a new window with list of versions in this module.
Published: Nov 17, 2022
License: BSD-3-Clause, Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Edge struct {
From string `json:"v"`
To string `json:"w"`
}
Edge is Graph's edge
type Graph struct {
Nodes []Node `json:"nodes"`
Edges []Edge `json:"edges"`
Options Options `json:"options"`
}
Graph is graph that when marshaled to JSON can be imported via Graphlib JS pkg from NPM
SortedNodeNames returns a sorted list of all the node names
ToDOT return graph as GraphViz .dot format string
type Node struct {
Name string `json:"v"`
Value interface{} `json:"value"`
}
Node is Grpah's node
type Options struct {
Directed bool `json:"directed"`
Multigraph bool `json:"multigraph"`
Compound bool `json:"compound"`
}
Options is Graph's options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.