Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Ext is a file extension for GraphML files. Ext = ".graphml" // Namespace is a canonical XML namespace for GraphML. Namespace = "http://graphml.graphdrawing.org/xmlns" )
View Source
const ( EdgeDirected = EdgeDir("directed") EdgeUndirected = EdgeDir("undirected") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Key string `xml:"key,attr"` Unrecognized []xml.Attr `xml:",any,attr"` Data []xml.Token }
Data is a raw XML value for a custom attribute.
func (*Data) Reader ¶
func (d *Data) Reader() xml.TokenReader
Reader returns a XML token reader for this custom attribute. See xml.NewTokenDecoder().
type Document ¶
type Document struct { Instr xml.ProcInst Attrs []xml.Attr Keys []Key Graphs []Graph `xml:"graph"` Data []Data `xml:"data"` }
Document is a self-contained GraphML document.
type Graph ¶
type Graph struct { ExtObject // EdgeDefault is a default direction mode for edges (directed or undirected). EdgeDefault EdgeDir `xml:"edgedefault,attr"` Nodes []Node `xml:"node"` Edges []Edge `xml:"edge"` }
Graph is a set of nodes and edges.
Click to show internal directories.
Click to hide internal directories.