Fixed error where we forgot about nodes without edges.