我的标签共现网络被存储为CSV格式的邻接矩阵,如下所示。 ,#A,#B,#C,#D,#E,#F,#G,#H,#I,#J,#K
#A,0,1,1,0,1,1,1,1,0,1,0
#B,1,0,0,0,1,1,1,1,0,1,0
#C,1,0,0,0,1,1,1,1,0,1,0
... 然后我使用这个页面作为参考Plot NetworkX Graph from Adjacency Matrix in CSV file 我想将此矩阵导入到networkx中,并尝试了以下操作: import numpy as np
import networkx as nx
import matplotlib.py