从 csv 文件自定义网络图

问题描述

我想从 CSV 文件在 python 中绘制网络图,其中将连接 3 种类型的网络。想要根据属性进行定制和访问。有人可以帮我吗?数据看起来像这样,图中需要 3 个图。

enter image description here

解决方法

您可以查看 how to draw directed graphs using networkx in python? 进行渲染,只需使用 https://docs.python.org/3/library/csv.html 读取您的数据。