MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / visualize_graph

Function visualize_graph

methods/cognee/api/v1/visualize/visualize.py:14–27  ·  view source on GitHub ↗
(destination_file_path: str = None)

Source from the content-addressed store, hash-verified

12
13
14async def visualize_graph(destination_file_path: str = None):
15 graph_engine = await get_graph_engine()
16 graph_data = await graph_engine.get_graph_data()
17
18 graph = await cognee_network_visualization(graph_data, destination_file_path)
19
20 if destination_file_path:
21 logger.info(f"The HTML file has been stored at path: {destination_file_path}")
22 else:
23 logger.info(
24 "The HTML file has been stored on your home directory! Navigate there with cd ~"
25 )
26
27 return graph
28
29
30if __name__ == "__main__":

Callers 3

visualizeFunction · 0.90
mainFunction · 0.90
visualize.pyFile · 0.85

Calls 4

get_graph_engineFunction · 0.90
infoMethod · 0.65
get_graph_dataMethod · 0.45

Tested by

no test coverage detected