API Reference

The public API exposes three groups of functions: the core workflow, system-function builders, and the reference-state search helpers used internally by run_ref_extraction_by_mcs().

Core workflow

rsr.rsr.run_ref_extraction_by_mcs

Extract boundary reference states via Monte Carlo search.

rsr.rsr.get_comp_cond_sys_prob

P(system state | given component states).

rsr.rsr.get_comp_cond_sys_prob_multi

Estimate P(system state = s | given component states) for multi-state systems by Monte Carlo.

System-function builders

rsr.igraph_sfun.make_igraph_sfun_global_conn

Create an igraph-accelerated sfun for global connectivity.

rsr.igraph_sfun.make_igraph_sfun_conn

Create an igraph-accelerated sfun for 1OD connectivity.

rsr.igraph_sfun.eval_global_conn_igraph

igraph-accelerated version of eval_global_conn_k.

rsr.igraph_sfun.eval_1od_connectivity_igraph

igraph-accelerated version of eval_1od_connectivity.

rsr.igraph_sfun.nx_to_igraph

Convert a NetworkX graph to igraph, preserving node names and edge IDs.