Computing the homology ranks of the robot specific environment graph