concepts.benchmark.algorithm_env.quickaccess.get_path_env#

get_path_env(n, dist_range, prob_edge=0.5, directed=False, gen_method='edge', max_episode_len=None)[source]#

Get a path-finding environment with n nodes.

Parameters:
  • n – number of nodes.

  • dist_range – the range of distance between the start and the end.

  • prob_edge – the probability of an edge between two nodes.

  • directed – whether the graph is directed.

  • gen_method – the method to generate the graph. It can be ‘edge’ or ‘dnc’ or ‘list’.

  • max_episode_len (int | None) – the maximum length of the episode.

Returns:

the path-finding environment.

Return type:

RLEnvBase