Graph visualization¶
The function results in an interactive map, which will display graph nodes grouped by clusters. Each cluster will have its own color and name. Node markers will have a random offset to avoid overlapping.
- soika.src.visual.graph_visualization.visualize_graph(G, zoom: int)[исходный код]¶
Visualizes a graph from the given graph_path using Folium and MarkerCluster.
- Параметры:
output_file (str, optional) – The file to save the visualization to. Defaults to None.
- Результат:
The folium map object representing the visualized graph.
- Тип результата:
folium.Map