删除visualize_graph.py文件,移除不再使用的图形绘制逻辑

This commit is contained in:
墨梓柒
2025-08-03 11:33:26 +08:00
parent 2c93b2dac8
commit a5631fd23a

View File

@@ -1,17 +0,0 @@
import networkx as nx
from matplotlib import pyplot as plt
def draw_graph_and_show(graph):
"""绘制图并显示画布大小1280*1280"""
fig = plt.figure(1, figsize=(12.8, 12.8), dpi=100)
nx.draw_networkx(
graph,
node_size=100,
width=0.5,
with_labels=True,
labels=nx.get_node_attributes(graph, "content"),
font_family="Sarasa Mono SC",
font_size=8,
)
fig.show()