cmap

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 5 Imported by: 0

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

type Connections struct {
	Id   int
	Name []byte
	From *Node
	To   *Node
}

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

Jump to

Keyboard shortcuts

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