draw

package
v0.0.0-...-d578a7f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filePath string, graphNumber int, fieldName, color string)

CreateFile creates a .dot file to show one or more graph with details If the fieldName != "" -> GetGraphDocuments return two more informations about the node: for each node: if it has fieldName between its fields (true) otherwise (false) thank to this information i can color the node

func CreateFileFields

func CreateFileFields(filePath string)

CreateFileFields creates a .dot file to show one or more graph with details shows the fields hierarchy. If the fieldName != "" -> GetGraphDocuments return two more informations about the node: for each node: if it has fieldName between its fields (true) otherwise (false) thank to this information i can color the node

Types

type Data

type Data struct {
	XMLName xml.Name `xml:"data"`
	Key     string   `xml:"key,attr"`
}

type Edge

type Edge struct {
	XMLName xml.Name `xml:"edge"`
	Id      string   `xml:"id,attr"`
	Source  string   `xml:"source,attr"`
	Target  string   `xml:"target,attr"`
	Label   string   `xml:"label,attr"`
	Datas   []Data   `xml:"data"`
}

type EdgeInfo

type EdgeInfo struct {
	// contains filtered or unexported fields
}

struttura con le info dell'arco che mi interessano (id e' la chiave nella mappa)

type Graph

type Graph struct {
	XMLName     xml.Name `xml:"graph"`
	Id          string   `xml:"id,attr"`
	Edgedefault string   `xml:"edgedefault,attr"`
	Edges       []Edge   `xml:"edge"`
}

struttura che contiene gli archi

Jump to

Keyboard shortcuts

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