提交
This commit is contained in:
1 parent
ac4c3d1886
commit
6a8c3e750e
21 files changed
+9885
-9150
No files matched your search
@@ -148,8 +148,11 @@ analysis = {
|
||||
Path('graphify-out/.graphify_analysis.json').write_text(json.dumps(analysis, indent=2))
|
||||
Path('graphify-out/.graphify_labels.json').write_text(json.dumps({str(k): v for k, v in labels.items()}))
|
||||
|
||||
# Generate HTML
|
||||
to_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None)
|
||||
# Generate HTML(节点过多时跳过可视化,仍保存 json/report)
|
||||
try:
|
||||
to_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None)
|
||||
except ValueError as e:
|
||||
print(f'[graphify] skip HTML viz: {e}')
|
||||
|
||||
# Save manifest
|
||||
from graphify.detect import save_manifest
|
||||
|
||||
Reference in new issue
Block a user