aryagraph.analysis.report.GraphReport#

class aryagraph.analysis.report.GraphReport(graph: Any, summary: dict[str, ~typing.Any]=<factory>, centrality: dict[str, ~aryagraph.core.results.NodeMap]=<factory>, communities: list[set] | None = None, community_of: NodeMap | None = None, modularity: float | None = None, structure: dict[str, ~typing.Any]=<factory>, dag: dict[str, ~typing.Any] | None=None, degree_histogram: list[int] = <factory>, notes: list[str] = <factory>, timings: dict[str, float]=<factory>, theme: Theme | None = None)[source]#

Bases: object

Everything analyze() found. Metrics are plain values / NodeMap objects.

to_dict() → dict[str, Any][source]#

JSON-serialisable view of the report (NodeMaps become {str(node): value}).

figure(**kwargs: Any)[source]#

The report’s graph drawing (communities colored, PageRank sized, metrics in tooltips).

save(path: str | Path) → Path[source]#

Write .html (dashboard), .json (data), .txt/.md (text summary).