powergrid_synth.core.hierarchical_analysis
This module performs an analysis of the generated synthetic grid topology for each subgraph, as well as for the entire global graph.
Module Contents
- class powergrid_synth.core.hierarchical_analysis.HierarchicalAnalyzer(graph)[source]
A wrapper class that manages analysis for multi-level power grids. It can perform a global analysis and then iterate through each voltage level to perform subgraph analysis.
- Parameters:
graph (networkx.Graph)
- plot_all_levels(log_scale=True)[source]
Plots degree distributions for all voltage levels in a single figure (subplots).
- Parameters:
log_scale (bool) – If True, uses log-log scale. If False, uses linear scale.