Discovery of network properties with all-shortest-paths queries