MCPcopy Create free account
hub / github.com/Alibaba-NLP/VRAG / refresh_graph

Function refresh_graph

demo/vimrag_app.py:660–667  ·  view source on GitHub ↗

刷新 Memory Graph 可视化

(placeholder, nodes=None, edges=None, height=500)

Source from the content-addressed store, hash-verified

658
659
660def refresh_graph(placeholder, nodes=None, edges=None, height=500):
661 """刷新 Memory Graph 可视化"""
662 nodes = nodes if nodes is not None else st.session_state.vis_nodes
663 edges = edges if edges is not None else st.session_state.vis_edges
664 if nodes:
665 html_content = render_graph_html(nodes, edges)
666 with placeholder:
667 components.html(html_content, height=height)
668
669
670def auto_scroll_to_bottom():

Callers 1

mainFunction · 0.85

Calls 1

render_graph_htmlFunction · 0.85

Tested by

no test coverage detected