در یک نقشهٔ فرضیِ مسیر تماس، دو شاخه به مقصد می‌رسند. آیا حذفِ یک گرهٔ میانی را می‌توان دور زد؟ شمردنِ شاخه‌ها پاسخ نمی‌دهد؛ شاید هر دو پیش از مقصد از همان گره عبور کنند. این درس، پرسش را با مفهومِ گرهٔ غالب در یک گرافِ جهت‌دارِ کوچک دقیق می‌کند. ورودی، دادهٔ ساختگیِ نویسنده است؛ هیچ داخلی، مرکز تلفن، پیامِ SIP یا تماسِ واقعی اجرا نمی‌شود.

۱. چند مسیر، لزوماً چند راهِ مستقل نیست

لوله‌های جداشده با یک اتصالِ مشترک در ابتدای راه
تصویر مفهومی: لوله‌های جداشده با یک اتصالِ مشترک در ابتدای راه؛ بدون مقیاس عددی و مستقل از نتایج اجرای کد.

شش گره با شماره‌های صفر تا پنج داریم. از صفر به یک می‌رویم؛ یک دو شاخه به دو و سه دارد؛ هر دو به چهار می‌رسند و چهار به پنج می‌رود. یالِ چهار به دو نیز یک دور می‌سازد. مسیرهای صفر، یک، دو، چهار، پنج و صفر، یک، سه، چهار، پنج متفاوت‌اند، اما هر دو هنوز از یک و چهار عبور می‌کنند. شاخهٔ بیشتر، به‌خودیِ خود آن دو را قابلِ دورزدن نکرده است.

شماره‌ها فقط شناسه‌اند. یال یعنی در همین مدل، گذار از مبدأ به مقصد مجاز است؛ جهتِ برگشت را از روی آن نمی‌سازیم. یال نه مدت دارد، نه ظرفیت، نه احتمالِ موفقیت و نه برچسبِ مجوز. حتی اگر گره‌ها را مرحله‌های فرضیِ مسیر تماس بنامیم، کد تنظیمِ مرکز تلفن را نخوانده است. تفسیرِ نتیجه باید در همین سطحِ ساختاری بماند.

در مستنداتِ فنیِ Boost Graph، گرهٔ u بر v غالب است اگر هر مسیرِ جهت‌دار از ورودی به v ناچار از u بگذرد. واژهٔ «هر» مهم است: پیداکردنِ یک مسیر که از u می‌گذرد، کافی نیست. همچنین فقط کوتاه‌ترین مسیرها را نمی‌سنجیم؛ یک راهِ بلندترِ مجاز هم می‌تواند شاهدِ دورزدن باشد.

۲. گرهٔ غالب را فقط برای مقصدِ دسترس‌پذیر تعریف کنیم

گذرگاهِ متصل در کنار سکویی که از ورودی جدا مانده است
تصویر مفهومی: گذرگاهِ متصل در کنار سکویی که از ورودی جدا مانده است؛ بدون مقیاس عددی و مستقل از نتایج اجرای کد.

ابتدا گره‌هایی را جدا می‌کنیم که از ورودی به آن‌ها می‌رسیم. تابعِ آموزشی برای همین مقصدها مجموعهٔ گره‌های غالب را برمی‌گرداند و گره‌های دیگر را در فهرستِ جداگانهٔ unreachable می‌گذارد. برای مقصدِ جداافتاده، از نبودِ مسیر نتیجه نمی‌گیریم که همهٔ گره‌ها اجباری‌اند. این انتخابِ روشنِ خروجی، جلوی یک برداشتِ تهی و بی‌فایده را می‌گیرد.

هر مقصدِ دسترس‌پذیر بر خودش غالب است، چون مسیر در همان مقصد پایان می‌یابد. ورودی نیز بر همهٔ مقصدهای دسترس‌پذیر غالب است. مسیرِ بدونِ یال از ورودی به خودش پذیرفته می‌شود؛ بنابراین مجموعهٔ ورودی فقط خودش است، حتی اگر یالِ برگشتی یا خودحلقه داشته باشد. «گرهٔ غالبِ میانی» را باید از این دو موردِ بدیهی جدا خواند.

صفحهٔ immediate_dominators در NetworkX نیز دامنهٔ خروجی را به گره‌های دسترس‌پذیر از آغاز محدود می‌کند. آن API والدِ بلافصلِ هر گره را در درختِ غلبه می‌دهد و ورودی را از نگاشت کنار می‌گذارد. خروجیِ ما متفاوت است: تمامِ غالب‌ها، همراهِ خودِ گره، گزارش می‌شوند. نه NetworkX اجرا می‌کنیم و نه یکسان‌بودنِ قالبِ دو خروجی را وعده می‌دهیم.

مرزِ ورودیِ خودمان یک تا شش گره و حداکثر مربعِ تعدادِ گره‌ها یالِ یکتاست؛ خودحلقه مجاز است. تعداد، آغاز و مقصدهای یال، عددِ صحیحِ دقیق‌اند؛ bool و زیرکلاس رد می‌شوند. یال‌ها تاپلِ آماده از زوج‌های تاپلی‌اند. کلِ توصیف، حتی یالِ خرابِ ناحیهٔ دسترس‌ناپذیر، پیش از ساختنِ همسایه‌ها و پیمایش بررسی می‌شود. این سقف‌ها محدودیتِ کتابخانه یا شبکه نیستند.

۳. اشتراکِ پیشینیان تا نقطهٔ ثابت

لایه‌های شفافِ هم‌تراز با روزنه‌ای مشترک در محلِ هم‌پوشانی
تصویر مفهومی: لایه‌های شفافِ هم‌تراز با روزنه‌ای مشترک در محلِ هم‌پوشانی؛ بدون مقیاس عددی و مستقل از نتایج اجرای کد.

برای ورودی، مجموعهٔ خودش را ثابت نگه می‌داریم. برای هر گرهٔ دسترس‌پذیرِ دیگر، در آغاز همهٔ گره‌های دسترس‌پذیر را نامزد می‌گیریم. این نامزدگذاری ادعا نمی‌کند که همه واقعاً غالب‌اند؛ قرار است نامزدهای نادرست حذف شوند. سپس برای هر گره، اشتراکِ مجموعه‌های پیشینیانِ دسترس‌پذیر را می‌گیریم و خودِ گره را به آن می‌افزاییم.

در نمونه، چهار دو پیشینِ دو و سه دارد. آنچه فقط روی یکی از شاخه‌هاست، در اشتراک نمی‌ماند؛ صفر و یک مشترک‌اند و خودِ چهار هم اضافه می‌شود. پس غالب‌های چهار، صفر و یک و چهار هستند. برای پنج، چهار تنها پیشین است؛ با افزودنِ خودِ پنج، مجموعهٔ صفر و یک و چهار و پنج به دست می‌آید. نتیجه دربارهٔ همهٔ مسیرهای همین گراف است، نه فقط دو مسیرِ نام‌برده.

به‌روزرسانی‌ها هم‌زمان‌اند: یک دورِ کامل از تصویرِ دورِ قبلی می‌خواند. مجموعه‌ها از بالا آغاز شده‌اند و فقط کوچک می‌شوند؛ در هر دورِ تغییردهنده دست‌کم یک عضویت حذف می‌شود. تعدادِ عضویت‌های اولیه محدود است، پس رسیدن به برابری، پایانِ تحلیلی دارد. کرانِ مربعیِ محافظه‌کارانهٔ کد از همین استدلال می‌آید، نه از یک مهلتِ دلخواه یا دیدنِ چند اجرای سریع.

دو نکته جلوی خطا را می‌گیرند. نخست، اگر از مجموعهٔ تک‌عضویِ هر گره شروع کنیم، یک دورِ دسترس‌پذیر ممکن است ورودیِ مشترک را گم کند؛ هر نقطهٔ ثابتِ دلخواه پاسخِ درست نیست. دوم، پیشینِ دسترس‌ناپذیر نباید در اشتراک شرکت کند. در زنجیرهٔ صفر به یک به دو به سه، یالِ چهار به سه از ناحیهٔ جداافتاده راهی از صفر نساخته است و نباید یک و دو را از غالب‌های سه حذف کند.

۴. مرجعِ مستقل: حذفِ یک گره و آزمونِ دسترسی

قطعهٔ جداشدنیِ یک ماکتِ پل در کنار جای خالیِ آن و راهی جایگزین
تصویر مفهومی: قطعهٔ جداشدنیِ یک ماکتِ پل در کنار جای خالیِ آن و راهی جایگزین؛ بدون مقیاس عددی و مستقل از نتایج اجرای کد.

مرجع، مجموعه‌های غلبه را بازسازی نمی‌کند. هر بار یک نامزد و همهٔ یال‌های متصل به آن را کنار می‌گذارد و با بستنِ یک رابطهٔ بولی می‌پرسد کدام مقصدها هنوز از ورودی دسترس‌پذیرند. اگر مقصدِ قبلاً دسترس‌پذیر پس از حذفِ نامزد از دست برود، آن نامزد غالب بوده است. قطرِ ماتریس برای گرهٔ حذف‌شده خاموش می‌ماند؛ حذفِ ورودی همهٔ راه‌ها و حذفِ مقصد، رسیدن به همان مقصد را ناممکن می‌کند.

در شاهدِ دستی، حذفِ دو هنوز راهِ صفر، یک، سه، چهار، پنج را باقی می‌گذارد؛ حذفِ یک چنین راهی باقی نمی‌گذارد. مسیرِ اصلی، پیمایشِ دسترسی و اشتراکِ مجموعه‌ها دارد؛ مسیرِ انتظار، حذفِ رأس و بستارِ ماتریسی دارد. هیچ تابعِ خصوصیِ مسیرِ اصلی، اعتبارسنجِ آن یا نتیجهٔ محاسبه‌شده، انتظارِ مرجع را تأمین نمی‌کند.

"""Mandatory vertices in a supplied finite directed graph, not live call routing."""
from itertools import product
from typing import NamedTuple
import json
import platform
import sys

AUTHOR_MAIN_ENABLED = True
NODE_CAP = 6


class DominanceReport(NamedTuple):
    entry: int
    reachable: tuple
    unreachable: tuple
    dominators: tuple


def _admit(node_count, edges, entry):
    if type(node_count) is not int:
        raise TypeError("exact integer node count required")
    if not 1 <= node_count <= NODE_CAP:
        raise ValueError("own node count must be 1..6")
    if type(entry) is not int:
        raise TypeError("exact integer entry required")
    if not 0 <= entry < node_count:
        raise ValueError("entry outside supplied vertices")
    if type(edges) is not tuple:
        raise TypeError("exact materialized edge tuple required")
    if len(edges) > node_count * node_count:
        raise ValueError("too many declared directed pairs")
    for edge in edges:
        if type(edge) is not tuple or len(edge) != 2:
            raise TypeError("exact length-two edge tuple required")
        for endpoint in edge:
            if type(endpoint) is not int:
                raise TypeError("exact integer endpoint required")
            if not 0 <= endpoint < node_count:
                raise ValueError("endpoint outside supplied vertices")
    if len(set(edges)) != len(edges):
        raise ValueError("duplicate directed pair")


def _adjacency(node_count, edges):
    outgoing = [[] for _ in range(node_count)]
    incoming = [[] for _ in range(node_count)]
    for source, target in edges:
        outgoing[source].append(target)
        incoming[target].append(source)
    return outgoing, incoming


def route_dominators(node_count, edges, entry):
    """All reflexive dominator sets for entry-reachable vertices only.

    Complete admission precedes adjacency allocation and traversal. All paths
    mean paths in these supplied unweighted directed edges, not SIP behavior,
    physical routes, probability, capacity, permissions or fault tolerance.
    """
    _admit(node_count, edges, entry)
    outgoing, incoming = _adjacency(node_count, edges)
    reached, pending = set(), [entry]
    while pending:
        node = pending.pop()
        if node not in reached:
            reached.add(node)
            pending.extend(outgoing[node])
    reachable = tuple(sorted(reached))
    dominators = {node: ({entry} if node == entry else set(reached))
                  for node in reachable}
    productive_rounds = 0
    while True:
        following = {entry: {entry}}
        for node in reachable:
            if node == entry:
                continue
            predecessors = tuple(p for p in incoming[node] if p in reached)
            assert predecessors  # Every non-entry reachable vertex has one.
            shared = set(reached)
            for predecessor in predecessors:
                shared.intersection_update(dominators[predecessor])
            following[node] = {node} | shared
        if following == dominators:
            break
        # Top initialization gives a decreasing sequence, not arbitrary seeds.
        assert all(following[v] <= dominators[v] for v in reachable)
        assert sum(map(len, following.values())) < sum(map(len, dominators.values()))
        productive_rounds += 1
        assert productive_rounds <= node_count * node_count
        dominators = following
    return DominanceReport(entry, reachable,
                           tuple(v for v in range(node_count) if v not in reached),
                           tuple((v, tuple(sorted(dominators[v]))) for v in reachable))


def _closure_without(node_count, edges, removed=None):
    """Trusted valid fixtures: Boolean relation closure, no main traversal."""
    relation = [[u != removed and v != removed and (u == v or (u, v) in edges)
                 for v in range(node_count)] for u in range(node_count)]
    for middle in range(node_count):
        for source in range(node_count):
            for target in range(node_count):
                relation[source][target] = (relation[source][target]
                    or (relation[source][middle] and relation[middle][target]))
    return relation


def deletion_reference(node_count, edges, entry):
    """Independent expected all-path relation via deleting each candidate.

    No main API, dominator recurrence, validator or adjacency helper is used.
    The removed vertex has neither a reflexive path nor any incident edges.
    """
    original = _closure_without(node_count, edges)
    reachable = tuple(v for v in range(node_count) if original[entry][v])
    deleted = tuple(_closure_without(node_count, edges, v) for v in range(node_count))
    rows = tuple((v, tuple(candidate for candidate in range(node_count)
                           if not deleted[candidate][entry][v])) for v in reachable)
    return DominanceReport(entry, reachable,
                           tuple(v for v in range(node_count) if v not in reachable), rows)


def _raises(kind, call):
    try:
        call()
    except kind:
        return True
    return False


def run_example():
    checks = {}
    edges = ((0, 1), (1, 2), (1, 3), (2, 4), (3, 4), (4, 5), (4, 2))
    untouched_edges = edges
    manual = route_dominators(6, edges, 0)
    hand_rows = ((0, (0,)), (1, (0, 1)), (2, (0, 1, 2)),
                 (3, (0, 1, 3)), (4, (0, 1, 4)), (5, (0, 1, 4, 5)))
    checks["literal_split_rejoin_cycle_manual_all_mandatory_sets"] = (
        manual == DominanceReport(0, tuple(range(6)), (), hand_rows))

    diamond = route_dominators(5, ((0, 1), (0, 2), (1, 3), (2, 3), (3, 4)), 0)
    checks["alternative_branches_do_not_remove_the_shared_merge_vertex"] = (
        diamond.dominators == ((0, (0,)), (1, (0, 1)), (2, (0, 2)),
                               (3, (0, 3)), (4, (0, 3, 4))))

    cycle = route_dominators(4, ((0, 1), (1, 2), (2, 1), (2, 3), (1, 1)), 0)
    checks["reachable_cycle_requires_top_initialization_and_no_DAG_assumption"] = (
        cycle.dominators == ((0, (0,)), (1, (0, 1)), (2, (0, 1, 2)),
                             (3, (0, 1, 2, 3))))

    isolated_predecessors = route_dominators(6, ((0, 1), (1, 2), (2, 3), (4, 3), (5, 4)), 0)
    checks["unreachable_predecessors_do_not_pollute_all_path_intersections"] = (
        isolated_predecessors.reachable == (0, 1, 2, 3)
        and isolated_predecessors.unreachable == (4, 5)
        and isolated_predecessors.dominators[-1] == (3, (0, 1, 2, 3))
        and all(v not in (4, 5) for v, _ in isolated_predecessors.dominators))

    entry_cycle = route_dominators(3, ((0, 0), (0, 1), (1, 2), (2, 0), (2, 2)), 0)
    checks["entry_incoming_edges_and_selfloops_keep_reflexive_entry_fixed"] = (
        entry_cycle.dominators == ((0, (0,)), (1, (0, 1)), (2, (0, 1, 2))))

    checks["singletons_disconnected_and_edgeless_graphs_have_explicit_domain"] = all(
        route_dominators(n, (), n - 1) == DominanceReport(n - 1, (n - 1,),
            tuple(range(n - 1)), ((n - 1, (n - 1,)),)) for n in range(1, 7))

    rename = (3, 5, 1, 4, 0, 2)
    inverse = {value: key for key, value in enumerate(rename)}
    renamed = route_dominators(6, tuple((rename[u], rename[v]) for u, v in edges), rename[0])
    restored = tuple(sorted((inverse[v], tuple(sorted(inverse[d] for d in ds)))
                            for v, ds in renamed.dominators))
    checks["bijective_vertex_renaming_preserves_dominance_relation"] = restored == hand_rows

    order_cases = 0
    for reordered in (tuple(reversed(edges)),) + tuple(edges[i:] + edges[:i] for i in range(len(edges))):
        assert route_dominators(6, reordered, 0) == manual
        order_cases += 1
    checks["input_edge_order_does_not_change_canonical_report"] = order_cases == 8

    original_sets = dict(manual.dominators)
    addition_cases = 0
    for candidate in product(range(6), repeat=2):
        if candidate not in edges:
            extended = route_dominators(6, edges + (candidate,), 0)
            assert extended.reachable == manual.reachable
            assert all(set(ds) <= set(original_sets[v]) for v, ds in extended.dominators)
            addition_cases += 1
    bypass = route_dominators(6, edges + ((0, 3),), 0)
    checks["adding_edges_cannot_create_new_dominators_of_reachable_targets"] = (
        addition_cases == 29 and bypass.dominators[-1] == (5, (0, 4, 5)))

    avoiding_two = (0, 1, 3, 4, 5)
    removed_entry = _closure_without(6, edges, 0)
    removed_target = _closure_without(6, edges, 5)
    checks["mandatory_nonmandatory_and_deleted_endpoint_witnesses_are_distinct"] = (
        2 not in original_sets[5] and 1 in original_sets[5]
        and all(pair in edges for pair in zip(avoiding_two, avoiding_two[1:]))
        and not _closure_without(6, edges, 1)[0][5]
        and _closure_without(6, edges, 2)[0][5]
        and not any(removed_entry[0]) and not any(row[5] for row in removed_target))

    family_profiles = 0
    possible = tuple(product(range(3), repeat=2))
    for present in product((False, True), repeat=9):
        graph = tuple(edge for edge, on in zip(possible, present) if on)
        for start in range(3):
            assert route_dominators(3, graph, start) == deletion_reference(3, graph, start)
            family_profiles += 1
    checks["independent_deleted_vertex_boolean_closure_1536_profiles_ONE_family"] = (
        family_profiles == 512 * 3)

    class IntChild(int):
        pass

    class TupleChild(tuple):
        def __len__(self):
            raise AssertionError("subclass hook must not be reached")

    lazy_calls = []
    def lazy_edges():
        lazy_calls.append(True)
        yield (0, 1)

    invalid = (
        (TypeError, (True, (), 0)), (TypeError, (IntChild(2), (), 0)),
        (TypeError, (2.0, (), 0)), (ValueError, (0, (), 0)),
        (ValueError, (7, (), 0)), (TypeError, (2, (), True)),
        (TypeError, (2, (), IntChild(0))), (TypeError, (2, (), 0.0)),
        (ValueError, (2, (), -1)), (ValueError, (2, (), 2)),
        (TypeError, (2, [], 0)), (TypeError, (2, TupleChild(), 0)),
        (TypeError, (2, lazy_edges(), 0)), (TypeError, (2, ([0, 1],), 0)),
        (TypeError, (2, (TupleChild((0, 1)),), 0)),
        (TypeError, (2, ((0,),), 0)), (TypeError, (2, ((0, 1, 0),), 0)),
        (TypeError, (2, ((False, 1),), 0)), (TypeError, (2, ((0, IntChild(1)),), 0)),
        (TypeError, (2, ((0, 1.0),), 0)), (TypeError, (2, (("0", 1),), 0)),
        (ValueError, (2, ((-1, 0),), 0)), (ValueError, (2, ((0, 2),), 0)),
        (ValueError, (2, ((0, 1), (0, 1)), 0)),
        (ValueError, (1, ((0, 0), (0, 0)), 0)),
        (ValueError, (3, ((0, 1), (2, 3)), 0)),
        (TypeError, (3, ((0, 1), (2, True)), 0)),
        (TypeError, (3, ((0, 1), [2, 2]), 0)),
    )
    allocations = []
    real_builder = globals()["_adjacency"]
    def forbidden_builder(*args):
        allocations.append(True)
        raise AssertionError("invalid declaration reached adjacency allocation")
    globals()["_adjacency"] = forbidden_builder
    try:
        invalid_ok = all(_raises(kind, lambda args=args: route_dominators(*args))
                         for kind, args in invalid)
    finally:
        globals()["_adjacency"] = real_builder
    checks["strict_whole_declaration_rejects_before_adjacency_and_traversal"] = (
        invalid_ok and allocations == [] and lazy_calls == [])

    dense_edges = tuple(product(range(6), repeat=2))
    dense = route_dominators(6, dense_edges, 5)
    dense_expected = tuple((v, (5,) if v == 5 else tuple(sorted((v, 5)))) for v in range(6))
    again = route_dominators(6, edges, 0)
    def mutate_report():
        manual.entry = 3
    def mutate_nested():
        manual.dominators[0][1][0] = 3
    checks["six_vertices_thirtysix_edges_fresh_nested_immutable_reports"] = (
        len(dense_edges) == 36 and dense.dominators == dense_expected
        and again == manual and again is not manual and edges == untouched_edges
        and _raises(AttributeError, mutate_report) and _raises(TypeError, mutate_nested))

    indegree = route_dominators(4, ((0, 1), (1, 3), (0, 2), (2, 1)), 0)
    long_bypass = route_dominators(5, ((0, 1), (1, 4), (0, 2), (2, 3), (3, 4)), 0)
    checks["indegree_and_only_shortest_routes_do_not_define_dominance"] = (
        indegree.dominators[-1] == (3, (0, 1, 3))
        and long_bypass.dominators[-1] == (4, (0, 4)))
    assert len(checks) == 14 and all(type(value) is bool and value for value in checks.values()), checks
    return {"runtime": {"python": platform.python_version(), "implementation": platform.python_implementation()},
            "scope": "Supplied bounded unweighted directed graph only; no SIP/device/call/network, physical redundancy, probability or availability test",
            "units": "vertex/edge counts and Boolean path existence, not duration or reliability",
            "manual": manual._asdict(), "cycle_top_initialization": cycle._asdict(),
            "unreachable_predecessors": isolated_predecessors._asdict(),
            "new_bypass": bypass._asdict(),
            "independent_expected_path": "Vertex-deleted Boolean relation closure; no production dominator recurrence, traversal helper or validator",
            "family_profiles_ONE_group": family_profiles, "edge_addition_property_cases": addition_cases,
            "edge_order_cases": order_cases, "invalid_profiles": len(invalid),
            "invalid_adjacency_allocations": len(allocations), "lazy_input_consumptions": len(lazy_calls),
            "structural_convergence_bound": "Synchronous top-initialized sets decrease; each productive round removes a membership; n*n productive rounds is a safe finite diagnostic bound, not an arbitrary timeout",
            "own_limits": {"vertices_inclusive": [1, 6], "directed_pairs_including_loops_max": 36},
            "groups_total": len(checks), "checks": checks,
            "limits": "Unreachable vertices have no dominator row; no vacuous dominance. All-dominator sets are not immediate/postdominator trees, minimum cuts, edge-disjoint routes, permissions or complete real call resilience."}


if __name__ == "__main__":
    if not AUTHOR_MAIN_ENABLED:
        raise SystemExit("Await ROOT registration and sole author main authorization")
    sys.stdout.reconfigure(encoding="ascii", newline="\n")
    print(json.dumps(run_example(), ensure_ascii=True, indent=2, allow_nan=False))

چهارده گروهِ بررسی، شاهدهای دستی، دور، پیشینِ جداافتاده، ورودی، میان‌بُر، تغییرِ نام، ترتیبِ یال، کران و تغییرناپذیریِ گزارش را جدا می‌سنجند. خانوادهٔ همهٔ گراف‌های سه‌گرهیِ جهت‌دار با خودحلقه، همراهِ همهٔ آغازها، فقط یک گروه است؛ تعدادِ واقعی در خروجی ثبت می‌شود. این خانواده برهانِ همهٔ گراف‌های جهان نیست. کد به کتابخانهٔ استاندارد تکیه دارد و نسخهٔ واقعیِ پایتون را در همان خروجی می‌نویسد.

{
  "runtime": {
    "python": "3.14.5",
    "implementation": "CPython"
  },
  "scope": "Supplied bounded unweighted directed graph only; no SIP/device/call/network, physical redundancy, probability or availability test",
  "units": "vertex/edge counts and Boolean path existence, not duration or reliability",
  "manual": {
    "entry": 0,
    "reachable": [
      0,
      1,
      2,
      3,
      4,
      5
    ],
    "unreachable": [],
    "dominators": [
      [
        0,
        [
          0
        ]
      ],
      [
        1,
        [
          0,
          1
        ]
      ],
      [
        2,
        [
          0,
          1,
          2
        ]
      ],
      [
        3,
        [
          0,
          1,
          3
        ]
      ],
      [
        4,
        [
          0,
          1,
          4
        ]
      ],
      [
        5,
        [
          0,
          1,
          4,
          5
        ]
      ]
    ]
  },
  "cycle_top_initialization": {
    "entry": 0,
    "reachable": [
      0,
      1,
      2,
      3
    ],
    "unreachable": [],
    "dominators": [
      [
        0,
        [
          0
        ]
      ],
      [
        1,
        [
          0,
          1
        ]
      ],
      [
        2,
        [
          0,
          1,
          2
        ]
      ],
      [
        3,
        [
          0,
          1,
          2,
          3
        ]
      ]
    ]
  },
  "unreachable_predecessors": {
    "entry": 0,
    "reachable": [
      0,
      1,
      2,
      3
    ],
    "unreachable": [
      4,
      5
    ],
    "dominators": [
      [
        0,
        [
          0
        ]
      ],
      [
        1,
        [
          0,
          1
        ]
      ],
      [
        2,
        [
          0,
          1,
          2
        ]
      ],
      [
        3,
        [
          0,
          1,
          2,
          3
        ]
      ]
    ]
  },
  "new_bypass": {
    "entry": 0,
    "reachable": [
      0,
      1,
      2,
      3,
      4,
      5
    ],
    "unreachable": [],
    "dominators": [
      [
        0,
        [
          0
        ]
      ],
      [
        1,
        [
          0,
          1
        ]
      ],
      [
        2,
        [
          0,
          2
        ]
      ],
      [
        3,
        [
          0,
          3
        ]
      ],
      [
        4,
        [
          0,
          4
        ]
      ],
      [
        5,
        [
          0,
          4,
          5
        ]
      ]
    ]
  },
  "independent_expected_path": "Vertex-deleted Boolean relation closure; no production dominator recurrence, traversal helper or validator",
  "family_profiles_ONE_group": 1536,
  "edge_addition_property_cases": 29,
  "edge_order_cases": 8,
  "invalid_profiles": 28,
  "invalid_adjacency_allocations": 0,
  "lazy_input_consumptions": 0,
  "structural_convergence_bound": "Synchronous top-initialized sets decrease; each productive round removes a membership; n*n productive rounds is a safe finite diagnostic bound, not an arbitrary timeout",
  "own_limits": {
    "vertices_inclusive": [
      1,
      6
    ],
    "directed_pairs_including_loops_max": 36
  },
  "groups_total": 14,
  "checks": {
    "literal_split_rejoin_cycle_manual_all_mandatory_sets": true,
    "alternative_branches_do_not_remove_the_shared_merge_vertex": true,
    "reachable_cycle_requires_top_initialization_and_no_DAG_assumption": true,
    "unreachable_predecessors_do_not_pollute_all_path_intersections": true,
    "entry_incoming_edges_and_selfloops_keep_reflexive_entry_fixed": true,
    "singletons_disconnected_and_edgeless_graphs_have_explicit_domain": true,
    "bijective_vertex_renaming_preserves_dominance_relation": true,
    "input_edge_order_does_not_change_canonical_report": true,
    "adding_edges_cannot_create_new_dominators_of_reachable_targets": true,
    "mandatory_nonmandatory_and_deleted_endpoint_witnesses_are_distinct": true,
    "independent_deleted_vertex_boolean_closure_1536_profiles_ONE_family": true,
    "strict_whole_declaration_rejects_before_adjacency_and_traversal": true,
    "six_vertices_thirtysix_edges_fresh_nested_immutable_reports": true,
    "indegree_and_only_shortest_routes_do_not_define_dominance": true
  },
  "limits": "Unreachable vertices have no dominator row; no vacuous dominance. All-dominator sets are not immediate/postdominator trees, minimum cuts, edge-disjoint routes, permissions or complete real call resilience."
}

در درسِ مؤلفه‌های قویاً همبند، پرسش دسترسیِ رفت‌وبرگشت و افرازِ گره‌ها بود؛ اینجا یک ورودیِ مشخص و عبورِ اجباری مهم است. درسِ ترتیبِ پیش‌نیازهای دانش نیز چرخه را مانعِ ترتیبِ کامل می‌دید؛ این الگوریتم چرخه را می‌پذیرد. هر دو متنِ منتشرشده از نسخهٔ کاملِ ذخیره‌شده خوانده شده‌اند؛ دسترسیِ زندهٔ امروز ادعا نمی‌شود.

دو منبعِ فنی در ۳۰ مهر ۱۴۰۵ خوانده شدند. صفحهٔ Boost عمداً نسخهٔ ثابتِ قدیمیِ 1.88.0 است و صفحهٔ NetworkX نسخهٔ 3.7 را نشان می‌دهد؛ هیچ‌کدام نسخهٔ اجرای کدِ ما نیست. روزِ نخستین انتشارِ این صفحه‌ها معلوم نیست. پیچیدگیِ الگوریتمِ Lengauer–Tarjan در صفحهٔ Boost نیز به روشِ سادهٔ مجموعه‌ایِ ما نسبت داده نمی‌شود؛ این درس خبرِ انتشار یا معیارِ سرعت نیست.

۵. چهار پرسش دربارهٔ دور، میان‌بُر و دامنهٔ تضمین

مسیرِ حلقه‌ایِ یک ماکت در کنار میان‌بُری که از کنارِ گذرگاهِ مرکزی می‌گذرد
تصویر مفهومی: مسیرِ حلقه‌ایِ یک ماکت در کنار میان‌بُری که از کنارِ گذرگاهِ مرکزی می‌گذرد؛ بدون مقیاس عددی و مستقل از نتایج اجرای کد.

پرسش اول: دو شاخه چرا چهار را قابلِ دورزدن نکردند؟ هر دو شاخه پیش از مقصدِ پنج دوباره واردِ چهار می‌شوند. پس چهار در همهٔ مسیرهای صفر به پنج حضور دارد، اما دو و سه هرکدام راهِ جایگزینِ دیگری دارند. تعدادِ ورودی‌های یک گره نیز پاسخِ غلبه را به‌تنهایی تعیین نمی‌کند.

پرسش دوم: یالِ ناحیهٔ جداافتاده به مقصد چه اثری دارد؟ تا وقتی از ورودی به مبدأِ آن یال نمی‌رسیم، یک مسیرِ تازه از ورودی ایجاد نشده است. آن پیشین از اشتراک کنار گذاشته می‌شود. اگر بعداً یالی ناحیه را وصل کند، مسئله عوض شده و باید گرافِ تازه را دوباره حساب کرد.

پرسش سوم: افزودنِ میان‌بُر می‌تواند غالبِ تازه بسازد؟ برای مقصدِ قبلاً دسترس‌پذیر، خیر؛ مسیرهای قبلی هنوز وجود دارند و راهِ تازه فقط می‌تواند اشتراک را حفظ یا کوچک کند. در نمونه، یالِ صفر به سه، یک را برای مقصدِ پنج قابلِ دورزدن می‌کند؛ چهار هنوز مشترک است. مقصدی که تازه دسترس‌پذیر شده، ارزیابیِ جدا می‌خواهد.

پرسش چهارم: نبودِ غالبِ میانی، مقاومتِ تماس در برابر خرابی را ثابت می‌کند؟ خیر؛ فقط حذفِ تک‌گره در همین گرافِ داده‌شده را تفسیر کرده‌ایم. دو مسیر ممکن است منبعِ فیزیکی، سیاست یا ظرفیتِ مشترکی داشته باشند که اصلاً در ورودی نیست. این خروجی نه تعدادِ راه‌های مستقل است و نه احتمالِ پایداریِ تماس؛ کامل‌بودنِ مدل باید جدا بررسی شود.

منابع و مطالعهٔ بیشتر

بررسی منابع: ۳۰ مهر ۱۴۰۵. تحلیل‌ها و پیشنهادهای اجرایی، جمع‌بندی نویسنده‌اند.