在netgraph.draw()函数中使用node_border参数。
import networkx as nx
import matplotlib.pyplot as plt
import netgraph
# Create a sample graph
G = nx.Graph()
G.add_edges_from([(1, 2), (2, 3), (3, 4)])
# Draw the graph with modified node border width
netgraph.draw(G, node_border=2)
plt.show()