How can I add weights to vertices based on the topological distance?

Hi @Quan_Li
wouldn’t this distance be the calculated length of A* shortest path?