Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ToolVersion = "0.2.1"
Functions ¶
This section is empty.
Types ¶
type CmapInput ¶
type CmapInput struct { File []byte `json:"file"` // File contents; []byte is a base64 encoded string when in json format Format int `json:"format"` // 0 = TXT, 1 = XML }
CmapInput is the input of the GradeMap function
type CmapOutput ¶
type CmapOutput struct { NC int `json:"nc"` // Number of concepts NL int `json:"nl"` // Number of links HH int `json:"hh"` // Highest hierarchy NUP int `json:"nup"` // Number of hierarchies (unique paths) NCT int `json:"nct"` // Number of cross-links (total inter and intra) LongestPath []string `json:"longestPath"` // Highest hierarchy path }
CmapOutput is the output of the GradeMap function
func GradeMap ¶
func GradeMap(input *CmapInput) (*CmapOutput, error)
type Connections ¶
Connections is a connection between two nodes
type Node ¶
type Node struct { Id int Name []byte Connections []*Connections }
Node is a node in the cmap
Click to show internal directories.
Click to hide internal directories.