def test_find_shortest_path_for_agents():
    network = pg.read_network()
    st = time()
    network.find_path_for_agents()
    print(f'''
processing time of finding shortest paths for all agents: {(time() - st):.2f} s''')
    agent_id = 300
    print(f'''
origin node id of agent is {network.get_agent_orig_node_id(agent_id)}''')
    print(f'destination node id of agent is {network.get_agent_dest_node_id(agent_id)}')
    print(f'shortest path (node id) of agent, {network.get_agent_node_path(agent_id)}')
    print(f'shortest path (link id) of agent, {network.get_agent_link_path(agent_id)}')
    agent_id = 1000
    print(f'''
origin node id of agent is {network.get_agent_orig_node_id(agent_id)}''')
    print(f'destination node id of agent is {network.get_agent_dest_node_id(agent_id)}')
    print(f'shortest path (node id) of agent, {network.get_agent_node_path(agent_id)}')
    print(f'shortest path (link id) of agent, {network.get_agent_link_path(agent_id)}')
    pg.output_agent_paths(network)
def test_find_shortest_path_for_agents():
    network = pg.read_network()
    st = time()
    network.find_path_for_agents()
    print(f'
processing time of finding shortest paths for all agents: {(time() - st):.2f} s')
    agent_id = 300
    print(f'
origin node id of agent is {network.get_agent_orig_node_id(agent_id)}')
    print(f'destination node id of agent is {network.get_agent_dest_node_id(agent_id)}')
    print(f'shortest path (node id) of agent, {network.get_agent_node_path(agent_id)}')
    print(f'shortest path (link id) of agent, {network.get_agent_link_path(agent_id)}')
    agent_id = 1000
    print(f'
origin node id of agent is {network.get_agent_orig_node_id(agent_id)}')
    print(f'destination node id of agent is {network.get_agent_dest_node_id(agent_id)}')
    print(f'shortest path (node id) of agent, {network.get_agent_node_path(agent_id)}')
    print(f'shortest path (link id) of agent, {network.get_agent_link_path(agent_id)}')
    pg.output_agent_paths(network)