An open library for your next question. Public pilot
Executable Science
Log inCreate account
← All research briefs
RESEARCH BRIEF · 5 SOURCES

Make an algorithm check include its invalid inputs

Does a shortest-path implementation return known distances and reject inputs outside its assumptions?

Make this plan your own ↓

Read, edit and export without an account. This is preparation; no run or result is claimed.

What to compare

The pilot contains three small controls. Broader properties need a stated generator, input contract, qualified environment and independently specified checks.

Useful outputs

  • Hand-enumerated distances for the fixed small graph.
  • Explicit negative-edge and reachable-negative-cycle controls.
  • An extension plan separating algorithm correctness from graph-ordering performance.

Inputs and prerequisites

  • The original fixed example is prepared for isolated standard-library execution.
  • NetworkX/SciPy/Hypothesis dependency environments remain unqualified for this collection.

What this work would not establish

  • A few examples cannot establish general correctness or a speedup.
  • Do not execute source repositories on the developer host.

Start with these sources.

Software

NetworkX

Graph construction, traversal, structural analysis, and network algorithms in Python.

License evidence recorded
Software

Hypothesis

Property-based testing tools that generate and simplify test inputs.

License evidence recorded
YOUR WORKING PLAN

Make the question your own.

Working copy · In this tab

Edit freely. Export a copy before reloading or leaving. Your text stays in this tab until you choose to copy, download or save it privately.