= nx.Graph() # 无多重边无向图
G.add_node() # 添加节点1
G.add_nodes_from([, ]) # 添加节点2,3
G.add_nodes_from([,...添加节点属性
import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph() # 无多重边无向图
G.add_nodes_from...networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph() # 无多重边无向图
G.add_nodes_from([,,,,,,,,...给节点添加不同的颜色
import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph() # 无多重边无向图
G.add_edges_from...import networkx as nx
import matplotlib.pyplot as plt
net_grid = nx.Graph()
# nodes
list_net_nodes =