def test_subgraph_within_box(self):
bounding_box = box(121.428387, 31.027371, 121.430863, 31.030227)
a = time.time()
subgraph = self.sg.subgraph_within_box(bounding_box)
print(time.time() - a)
if self.show_plots:
plt.figure()
nx.draw(subgraph, pos=self.sg.node_xy, node_size=50)
plt.show()
评论列表
文章目录