java.lang.Object
me.gosimple.nbvcxz.resources.AdjacencyGraph
- Author:
- Adam Brusselback.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AdjacencyGraph
- Parameters:
name- the name of the graphkeyMap- the keyMap for the graph
-
-
Method Details
-
getKeyMap
- Returns:
- The key map for this adjacency graph
-
getAverageDegree
public double getAverageDegree()Calculates the average "degree" of a keyboard or keypad. On the qwerty keyboard, 'g' has degree 6, being adjacent to 'ftyhbv' and '\' has degree 1.- Returns:
- the average degree for this keyboard or keypad
-
getName
- Returns:
- Returns the name
-