Fixed error when looking up edges of nodes not in the network