title: OSMNX Shortest Path - How to skip node if not reachable and take the next nearest
body: <p>I am using the OSMNX library on python.
  I am creating a 'drive' street network from a coordinate point
  I am setting the parameter 'retain_all' to False (I am assuming it should only bring connected nodes)
  However when i am running the shortest path function, i get the error &quot;Node 7079214188 not reachable from 5636337791&quot;</p>
  <p>I know i can use 'try' and 'except' but i am looking for a way to adjust the shortest path function and skip to next nearest node that can be reachable.</p>
  <p>Kindly find below the code to reproduce the problem :</p>
  <pre><code>import networkx as nx
  import osmnx as ox
  import plotly.graph_objects as go
  import numpy as np
  
  RDC_Coordinates = (27.4757976,-82.4192142)
  X = ox.graph_from_point(RDC_Coordinates,distance=32186,network_type='drive',retain_all=False)
  #Plot map
  #fig, ax = ox.plot_graph(X)
  
  
  # define origin and desination locations 
  origin_point = (27.4289, -82.388)  #Blue Runner
  destination_point = (27.476, -82.4192)   # Terracota
  
  # get the nearest network node to each point
  orig_node = ox.get_nearest_node(X, origin_point)
  dest_node = ox.get_nearest_node(X, destination_point)
  
  # how long is our route in miles?
  nx.shortest_path_length(X, orig_node, dest_node, weight='length')/1609
  </code></pre>