viz

package
v2.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XMLNS    string = "http://www.gephi.org/gexf"
	XMLNSVIZ string = "http://www.gephi.org/gexf/viz"

	ClassNode string = "node"
	ClassEdge string = "edge"

	ModeStatic  string = "static"
	ModeDynamic string = "dynamic"

	EdgeTypeDirected   string = "directed"
	EdgeTypeUndirected string = "undirected"
	EdgeTypeMutual     string = "mutual"
)
View Source
const HTMLEnd string = `` /* 151-byte string literal not displayed */
View Source
const HTMLStart string = `` /* 1598-byte string literal not displayed */

Variables

This section is empty.

Functions

func WriteD3Data

func WriteD3Data(nodes []Node, edges []Edge, output io.Writer)

func WriteDOTData

func WriteDOTData(nodes []Node, edges []Edge, output io.Writer)

func WriteGEXFData

func WriteGEXFData(nodes []Node, edges []Edge, output io.Writer)

func WriteGraphistryData

func WriteGraphistryData(nodes []Node, edges []Edge, output io.Writer)

func WriteVisjsData

func WriteVisjsData(nodes []Node, edges []Edge, output io.Writer)

Types

type Edge

type Edge struct {
	From, To int
	Label    string
	Title    string
}

type Node

type Node struct {
	ID     int
	Type   string
	Label  string
	Title  string
	Source string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL