Documentation ¶
Index ¶
- Constants
- func FromGobFile(file string, e interface{}) error
- func ToGobFile(file string, e interface{}) error
- type AttValue
- type AttValues
- type Attribute
- type Attributes
- type ClassType
- type Edge
- type EdgeType
- type Edges
- type Gexf
- func (g *Gexf) AddAttribute(a Attribute)
- func (g *Gexf) AddAttributeToNode(idx int, a AttValue)
- func (g *Gexf) AddEdge(e Edge)
- func (g *Gexf) AddNode(n Node)
- func (g *Gexf) GetNodeAttVal(nodeIdx int, attIdx int) (string, error)
- func (g *Gexf) Save(file string) error
- func (g *Gexf) SetNodeAttVal(nodeIdx int, attIdx int, attValue string) error
- type Graph
- type GraphType
- type IdType
- type Meta
- type Node
- type Nodes
Constants ¶
View Source
const ( Version = "1.2" Namespace = "http://www.gexf.net/1.2draft" TimeFormat = "2006-01-02+15:04" DefaultCreator = "Gexf Go Library " + Version )
View Source
const ( Directed = EdgeType("directed") Undirected = EdgeType("undirected") Mutual = EdgeType("mutual") DefaultEdgeType = Directed )
View Source
const ( String = IdType("string") Integer = IdType("integer") DefaultIdType = String )
View Source
const ( Static = GraphType("static") Dynamic = GraphType("dynamic") DefaultGraphType = Static )
View Source
const ( ClassNode = ClassType("node") ClassEdge = ClassType("edge") DefaultClassType = ClassNode )
Variables ¶
This section is empty.
Functions ¶
func FromGobFile ¶
Types ¶
type Attributes ¶
type Attributes struct { Class ClassType `xml:"class,attr"` Attribute []Attribute `xml:"attribute"` }
func (*Attributes) Add ¶
func (at *Attributes) Add(a Attribute)
type Gexf ¶
type Gexf struct { XMLName xml.Name Version string `xml:"version,attr"` Meta Meta `xml:"meta"` Graph Graph `xml:"graph"` }
func (*Gexf) AddAttribute ¶
func (*Gexf) AddAttributeToNode ¶
Click to show internal directories.
Click to hide internal directories.