def METHOD_NAME(log = sys.stdout):
    if version.parse(nx.__version__) < version.parse('2.6.2'):
      pae_power = 2.0
      pae_cutoff = 5.0
      resolution = 1.0
    else:
      pae_power = 1.0
      pae_cutoff = 5.0
      resolution = 0.5
    args = group_args(
      group_args_type = 'parameters',
      pae_file = pae_file,
      library = 'networkx',
      pae_power = pae_power,
      pae_cutoff = pae_cutoff,
      resolution = resolution,
      weight_by_ca_ca_distance = 1.0,
      distance_power = 1.0,
      distance_model = distance_model,
      select_range = False)
    selections = get_domain_selections_from_pae_matrix(pae_file = args.pae_file,
        library=args.library,
        pae_power = args.pae_power, pae_cutoff = args.pae_cutoff,
         graph_resolution =  args.resolution,
         weight_by_ca_ca_distance = args.weight_by_ca_ca_distance,
         distance_power = args.distance_power,
         distance_model = args.distance_model)
    if version.parse(nx.__version__) < version.parse('2.6.2'):
        assert selections == [
          "(resseq 0:1) or (resseq 22:113) or (resseq 184:187)",
          "(resseq 2:21)",
          "(resseq 114:183) or (resseq 188:291)",
          "(resseq 292:308)"
       ]
    else:
        assert selections == ['(resseq 0:24)', '(resseq 25:62) or (resseq 66:96) or (resseq 100:111)', '(resseq 63:65)', '(resseq 97:99)', '(resseq 112:117)', '(resseq 118:135) or (resseq 142:181) or (resseq 190:199)', '(resseq 136:141)', '(resseq 182:189)', '(resseq 200:269) or (resseq 274:288)', '(resseq 270:273)', '(resseq 289:308)'], selections