Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdjacencyGph = make(map[string]AdjacencyGraph)
Functions ¶
This section is empty.
Types ¶
type AdjacencyGraph ¶
type AdjacencyGraph struct { Graph map[string][]string Name string // contains filtered or unexported fields }
func BuildDvorak ¶
func BuildDvorak() AdjacencyGraph
func BuildKeypad ¶
func BuildKeypad() AdjacencyGraph
func BuildLeet ¶
func BuildLeet() AdjacencyGraph
func BuildMacKeypad ¶
func BuildMacKeypad() AdjacencyGraph
func BuildQwerty ¶
func BuildQwerty() AdjacencyGraph
func GetAdjancencyGraphFromFile ¶
func GetAdjancencyGraphFromFile(data []byte, name string) AdjacencyGraph
func (AdjacencyGraph) CalculateAvgDegree ¶
func (adjGrp AdjacencyGraph) CalculateAvgDegree() float64
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.