Moving graph related functions into NetworkInfo common class so that others can use it