您的问题似乎是在设置固定节点的位置之前计算所有节点的位置。 为固定节点设置 pos[p] 后将 pos = nx.spring_layout(G_pc,fixed=fixed_nodes) 移动到, ...
確定! 回上一頁