How this calculation works
All-terminal reliability is the probability that every vertex stays connected when edges independently work or fail. This calculator enumerates a small graph’s edge states and sums the probabilities of the connected ones. It accepts a general topology, rather than requiring a series/parallel block expression.
R=Σ_connected A product_(e in A)p_e product_(e not in A)(1−p_e).A worked example
A triangle remains connected if at least two of its three edges work. With common probability p, reliability is 3p²(1−p)+p³=3p²−2p³. At p=0.5 this gives 0.5. The connected-state count is four, while the total edge-state count is eight.
Good to know
At most 12 vertices and 18 independent edge probabilities in [0,1]. Topology enumeration is complete; probability arithmetic is floating point. No dependent failures, failed vertices, repair process or two-terminal-only criterion. Third edge entries are probabilities, not distances.
Reference: NetworkX connectivity definitions (opens in a new tab) ↗
The target is connection of every vertex
All-terminal reliability requires every listed vertex to lie in one connected component after edge failures. A route between only two chosen terminals is a weaker condition and would produce a different probability. The page uses no hidden source/destination pair and does not ignore an isolated vertex when deciding whether a state succeeds.
The third entry in an edge row is its working probability, constrained between zero and one. It is not a cost or distance. The same graph input format is shared with other graph tools, so the field help and result note repeat this change of meaning to prevent a valid decimal being interpreted under the wrong model.
The Independent series parallel reliability block groups calculator covers the nearby task. Arbitrary graph connectivity is not restricted to a series/parallel block expression.
Independence determines each state probability
For each edge subset, independence multiplies working probabilities for present edges and failure probabilities for absent edges. Correlated outages cannot be represented by those products. Shared environmental failures or redundant components with common causes need a joint-state model rather than an optimistic interpretation of the independent-edge answer.
Probability zero or one is allowed and can eliminate many state weights, while the topology enumeration still records how many subsets are connected. That connected-state count is not itself the reliability when edge probabilities differ. A uniform probability of one half is the special case in which every subset receives the same weight.
Topology enumeration and probability arithmetic differ
The enumeration covers all supported subsets exactly, but their probability products and sum use floating-point arithmetic. Very small probabilities can underflow, and a rounded endpoint is not a universal engineering guarantee. The output is a model probability, without confidence bounds for uncertain component probabilities or a repair-time interpretation.
The triangle’s polynomial provides an independent closed-form check across several p values. Other tests compare exhaustive connectivity decisions and direct probability sums, including disconnected graphs and deterministic edges. The strict edge cap bounds exponential work; it does not justify replacing an interrupted calculation with an unqualified Monte Carlo estimate.
Define the success event before multiplying probabilities
All-terminal reliability is the probability that every declared vertex belongs to one connected component after independently keeping or removing each edge. For a particular surviving set A, its probability is the product of pi for kept edges and 1−pi for absent edges. The result sums those products only over connected surviving sets.
Counting connected subsets and dividing by 2^m is valid only when every edge has probability one half. With unequal probabilities, different subsets have different weights. The connected-subset count remains a topological diagnostic, while the reliability metric includes the probabilities. The third entry on each edge row is a survival probability, not a travel distance.
Compare a series path with a redundant triangle
For a three-vertex path with edge survival probabilities 0.9 and 0.8, both edges must survive, so all-terminal reliability is 0.72. For a triangle with every edge surviving with probability p, any two surviving edges connect all vertices. Reliability is 3p²(1−p)+p³=3p²−2p³.
At p=0.5 the triangle reliability is 0.5; at p=0.9 it is 0.972. The latter exceeds a two-edge path with p=0.9, whose reliability is 0.81, because the extra link supplies alternate connectivity. This comparison holds under independent edge failures, not under a shared event that destroys all three links simultaneously.
Check bridges, impossible links and certain links
A bridge is an edge whose deletion disconnects the original graph. Every successful state must keep it, so its survival probability is a necessary multiplicative factor when the remaining components are analyzed appropriately. If a required bridge has probability zero, reliability is zero even when many other edges are very dependable.
An edge with probability one is always present, while probability zero is always absent in the probabilistic model. Those extreme probabilities do not authorize changing the declared vertex set: an isolated terminal still has to connect. An originally disconnected graph has all-terminal reliability zero for more than one vertex; no random survival of its existing edges can add a missing connection.
Do not extend independence into an unsupported failure claim
Cables in the same duct, devices on one power supply or links exposed to one storm can fail together. Marginal probabilities alone do not determine reliability under those dependencies. The product formula would then be wrong even if each entered probability was individually well estimated.
This form models edge states at one conceptual trial, not a repair process over time, failed vertices, throughput or a connection between just two chosen terminals. A reliability of 0.99 should therefore be reported with its independence and all-terminal assumptions. Complete topology enumeration does not make the floating-point sum or the input probability estimates exact statistical knowledge.
A few questions, answered
Do edge entries mean distances?
No. Here the third entry is an independent edge working probability.
Can failures be correlated?
Not in this model; each state weight is a product of independent edge probabilities.
Why is connected-subset count not enough with unequal probabilities?
Different surviving subsets have different probabilities. The result must weight each subset by products of survival and failure probabilities.
Can I model correlated link failures by entering their marginal probabilities?
No. Independence is essential here. Shared failure mechanisms need a joint-state model or a dedicated reliability method.