Objets/Documentation
experience.py
Énumération des causes, contrôle par chemins et test sur le pont.
Télécharger ↓"""Shared Bernoulli causes in undirected simple two-terminal networks, vertices 0 and 1."""
from fractions import Fraction as F
from itertools import combinations, product
from math import prod
import json
def reachable(edges):
seen = {0}
while True:
before = len(seen)
for a, b in edges:
if a in seen or b in seen:
seen.update((a, b))
if len(seen) == before:
return seen