NEW: helperclass for adjazenzmatrix