An efficient algorithm for enumerating all possible input nodes in controlling complex networks
the diameter of the world wide web .