You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Read-only overlay that hides disabled and excluded elements
69
+
- Supports concurrent analysis with different failure scenarios
70
+
- Identical API to Network for flow analysis methods
71
+
- Cached graph building for performance
72
+
73
+
**Key Methods:**
74
+
75
+
-`from_failure_sets(network, failed_nodes, failed_links)` - Create view with exclusions
76
+
-`max_flow()`, `saturated_edges()`, `sensitivity_analysis()` - Same as Network
77
+
-`is_node_hidden(name)` - Check if node is visible in this view
78
+
-`is_link_hidden(link_id)` - Check if link is visible in this view
79
+
49
80
### NetworkExplorer
50
81
Provides network visualization and exploration capabilities.
51
82
@@ -157,6 +188,8 @@ manager = FailureManager(
157
188
)
158
189
```
159
190
191
+
**Note:** For failure analysis without modifying the base network, consider using `NetworkView` instead of directly disabling nodes/links. This allows concurrent analysis of different failure scenarios.
Copy file name to clipboardExpand all lines: docs/reference/dsl.md
+9-141Lines changed: 9 additions & 141 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -488,13 +488,17 @@ workflow:
488
488
489
489
**Available Workflow Steps:**
490
490
491
-
- **`BuildGraph`**: Builds the network graph from the scenario definition
491
+
- **`BuildGraph`**: Builds a StrictMultiDiGraph from scenario.network
492
+
- **`CapacityProbe`**: Probes capacity (max flow) between selected groups of nodes
493
+
- **`NetworkStats`**: Computes basic capacity and degree statistics
492
494
- **`EnableNodes`**: Enables previously disabled nodes matching a path pattern
493
-
- **`DistributeExternalConnectivity`**: Creates external connectivity across attachment points
494
-
- **`CapacityProbe`**: Probes maximum flow capacity between node groups
495
+
- **`DistributeExternalConnectivity`**: Distributes external connectivity to attachment nodes
495
496
- **`CapacityEnvelopeAnalysis`**: Performs Monte-Carlo capacity analysis across failure scenarios
496
-
- **`NetworkStats`**: Computes basic node/link capacity and degree statistics
497
-
- **`NotebookExport`**: Saves scenario results to a Jupyter notebook with configurable content and visualizations
497
+
498
+
**Note:** NetGraph separates scenario-wide state (persistent configuration) from analysis-specific state (temporary failures). The `NetworkView` class provides a clean way to analyze networks under different failure conditions without modifying the base network, enabling concurrent analysis of multiple failure scenarios.
499
+
500
+
- **NetworkTransform steps** (like `EnableNodes`, `DistributeExternalConnectivity`) permanently modify the Network's scenario state
501
+
- **Analysis steps** (like `CapacityProbe`, `CapacityEnvelopeAnalysis`) should use NetworkView for temporary failure simulation to avoid corrupting the scenario
498
502
499
503
```yaml
500
504
- step_type: NotebookExport
@@ -582,139 +586,3 @@ When using capturing groups `(...)` in regex patterns, NetGraph groups matching
582
586
# All matching nodes are grouped under the original pattern string:
0 commit comments