From a5631fd23a79407999a95c06886b69a99224cd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Sun, 3 Aug 2025 11:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4visualize=5Fgraph.py=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=86=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=9B=BE=E5=BD=A2=E7=BB=98=E5=88=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/knowledge/utils/visualize_graph.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/chat/knowledge/utils/visualize_graph.py diff --git a/src/chat/knowledge/utils/visualize_graph.py b/src/chat/knowledge/utils/visualize_graph.py deleted file mode 100644 index 7ca9b7e68..000000000 --- a/src/chat/knowledge/utils/visualize_graph.py +++ /dev/null @@ -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()