adjacency

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT, MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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