Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unmarshal ¶
func Unmarshal(b []byte) *simple.DirectedGraph
Unmarshal reads a slice of bytes containing a dot encoded graph and returns a *simple.DirectedGraph with edges and nodes containing attributes
Types ¶
type Graph ¶
type Graph struct {
*simple.DirectedGraph
}
Graph ensures dotEdge and Node types are created when needed.
func (Graph) GetNodeByDOTID ¶
GetNodeByDOTID gets a Node by it's DOT ID.
type Node ¶
Node handles basic DOT serialisation and deserialisation
func (*Node) Attributes ¶
Attributes gets the slice of attributes defined for the node.
func (*Node) SetAttribute ¶
SetAttribute sets a DOT attribute.
Click to show internal directories.
Click to hide internal directories.