added isAdjacency(), getDegree()
count of nodes starts from 0 in the code now (and input.txt)