src/core/GraphVisualizer.h

GraphVisualizer [Module]

Description

The GraphVisualizer module interacts with the Graph class to generate visual representations of the social network. It typically uses Graphviz to render the graph into an image file.

Functions

bool Visualizer(const Graph &graph, const std::string &file_name)
Generates a visual graph image from a Graph object.
Parameters
  • graph: The Graph object to visualize.
  • file_name: The desired output filename (e.g., "graph.png").
Returns
true if visualization was successful, false otherwise.