~/talk

Understanding API Dispatching in NetworkX

Talkat PyData Global 2024 · 2024-12-03..12-05· [python]
links:none on file
slides:none on file

Claim: NetworkX redirects plain-Python calls to faster implementations in separate packages by using Python entry_point registration and a backend kwarg that chooses an implementation. The system converts NetworkX graphs to backend graph objects, uses caching conversion to amortize expensive translations, and runs package-provided algorithm attributes with automatic test reuse and a fallback to NX when algorithms are missing. The implementation exists, handles GPU/DB backends, and trades conversion overhead for much faster large-graph runs.

AI-written summary · about

  1. 0:00API dispatching in NetworkX
  2. 2:26NetworkX basics
  3. 6:01NetworkX API and graph objects
  4. 8:10Why dispatching for performance
  5. 10:23How dispatching works
  6. 13:39Dispatching advantages
  7. 14:45Backend library calls process
  8. 17:20NetworkX backend requirements
  9. 19:06Backend testing and fallback
  10. 21:20Dispatching use cases
  11. 22:25Dispatching in SciPy projects
  12. 24:12Dispatching challenges and future
  13. 25:18Q&A on GPU backends
  14. 27:11Alternatives to entry point dispatching
  15. 28:18Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.