def network_delay_time(times, n, k): # Replace this placeholder return statement with your code return -1