Discover Packages
github.com/ArkaGPL/gonum
graph
encoding
graphql
package
Version:
v0.8.10
Opens a new window with list of versions in this module.
Published: Dec 1, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package graphql implements JSON marshaling and unmarshaling of graph as
used by GraphQL
Unmarshal parses the JSON-encoded data and stores the result in dst.
Node IDs are obtained from the JSON fields identified by the uid parameter.
UIDs obtained from the JSON encoding must map to unique node ID values
consistently across the JSON-encoded spanning tree.
type LabelSetter interface {
SetLabel(string )
}
LabelSetter is a graph edge that can set its label.
type StringIDSetter interface {
SetIDFromString(uid string ) error
}
StringIDSetter is a graph node that can set its ID based on the given uid string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.