Documentation ¶
Index ¶
- Variables
- type Data
- type Edge
- type EdgeKey
- type Graph
- func (g *Graph) AddEdge(source, target string) error
- func (g *Graph) GetEdge(source, target string) (*Edge, error)
- func (g *Graph) GetNode(id string) (*Node, error)
- func (g *Graph) SetEdgeData(source, target, key, value string) error
- func (g *Graph) SetNodeData(id, key, value string) error
- func (g *Graph) ToGraphML() ([]byte, error)
- type GraphContent
- type GraphMLStruct
- type Key
- type Node
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEdgeDoesNotExist = errors.New("edge does not exist") ErrNodeDoesNotExist = errors.New("node does not exist") ErrEdgeAlreadyExists = errors.New("edge already exists") ErrNodeDataAlreadySet = errors.New("node data already set, will not override") ErrEdgeDataAlreadySet = errors.New("edge data already set, will not override") )
Functions ¶
This section is empty.
Types ¶
type GraphContent ¶
type GraphMLStruct ¶
type GraphMLStruct struct { XMLName xml.Name `xml:"graphml"` Keys []Key `xml:"key"` Graph GraphContent `xml:"graph"` }
Click to show internal directories.
Click to hide internal directories.