CalcIndex and CalcAdjacencies implemented