Removed getPredecessorCount method.