My problem was i needed to understand to which node in my given draph i need to give a voucher so it can reach all nodes in the shortest time posible so i used nx.closeness_