Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GraphMap = make(map[string]Graph)
GraphMap is a map of all graphs
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct { Graph map[string][]string Name string // contains filtered or unexported fields }
Graph holds information about different graphs
func (Graph) CalculateAvgDegree ¶
CalculateAvgDegree calclates the average degree between nodes in the graph on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1. this calculates the average over all keys. TODO double check that i ported this correctly scoring.coffee ln 5
Click to show internal directories.
Click to hide internal directories.