draw_graph_solution_nodes¶
- draw_graph_solution_nodes(main_graph, partition_nodes)[source]¶
Visualize a graph with solution nodes highlighted.
Draws the graph with nodes colored to distinguish solution nodes (red) from other nodes (light blue).
- Parameters:
main_graph (
Graph) – NetworkX graph to visualize.partition_nodes – Collection of node indices that are part of the solution.