Python osmnx simplify_图不会删除所有不相交的节点

Python osmnx simplify_图不会删除所有不相交的节点,python,osmnx,Python,Osmnx,我正在使用Osmnx简化我的图形。我尝试了严格的True和false,但我的图仍然有中间节点,它们不是交互 G3 = ox.graph_from_file( osm_simplified_file, bidirectional=False,simplify=False, retain_all=False, name='unnamed') G3 = ox.simplify_graph(G3, strict=False) G3 = ox.remove_isolated_nodes(G3); G3 =

我正在使用Osmnx简化我的图形。我尝试了严格的True和false,但我的图仍然有中间节点,它们不是交互

G3 = ox.graph_from_file( osm_simplified_file, bidirectional=False,simplify=False, retain_all=False, name='unnamed')
G3 = ox.simplify_graph(G3, strict=False)
G3 = ox.remove_isolated_nodes(G3);
G3 = ox.get_largest_component(G3,strongly=True);
ox.plot_graph(G3,......)

简化后的道路网仍然包含二度节点(两个相邻节点)。 如何完全删除所有没有交点的中间节点