usm_draw.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:pcog 作者: Ivan1931 项目源码 文件源码
def draw_graph(G, labels, colors, show, save_path, close_plot=True):
    nx.draw(G, pos=graphviz_layout(G, prog='dot'), labels=labels, arrows=True, node_color=colors)
    if show:
        plt.show()
    else:
        plt.savefig(save_path)
    if close_plot:
        plt.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号