The network created by the GSOM algorithm is layed out in two dimensions. Thus one needs to assign two dimensional coordinates to the nodes of the network and for a clustering to the clusters.
The types defining these coordinates and the functions to handle them belong into this module.
The list of supported directions. Since we are only dealing with hexagonal lattices, there are only six possible directions.
calculates the coordinates of
the neighbour of node with location
neighbour location direction
location in direction