Scientific discovery and topological transitions in collaboration networks