(destination_file_path: str = None)
| 12 | |
| 13 | |
| 14 | async 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 | |
| 30 | if __name__ == "__main__": |
no test coverage detected