package
Version:
v0.0.0-...-0d40728
Opens a new window with list of versions in this module.
Published: Dec 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Edge struct {
Src int `json:"source"`
Target int `json:"target"`
Label string `json:"label,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
Edge represents a graph edge.
NewEdge instantiates a new edge.
type Graph struct {
Nodes []*Node `json:"nodes"`
Edges []*Edge `json:"edges"`
}
Graph represents a graph.
ParseGML parses a GML file into a set of graphs.
type Node struct {
ID int `json:"id"`
Label string `json:"label"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
Node represents a graph node.
NewNode instantiates a new node.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.