graph-shapley-attribution
Copyright 2026 Flemming.AI

This product includes software developed by Dr. Stefan Flemming
and contributors (https://flemming.ai/).

------------------------------------------------------------------
Third-party acknowledgments

JSON (de)serialization uses `serde` + `serde_json`
(https://github.com/serde-rs), Apache-2.0 / MIT licensed.

Module SDK glue is provided by `chain-module-sdk`
(https://git.flemming.ai/fai/chain-module-sdk-rust), Apache-2.0.

------------------------------------------------------------------
Methodological lineage

The path-count proportional fallback in v0.1.0 matches the
Shapley value exactly when the coalition value is "did this
ancestor reach the target?".

The honest Shapley implementation planned for v0.2 follows the
Shubik-Owen recursion over the 2^n coalition lattice and is
the basis of:

  Shapley, L.S. (1953). A value for n-person games. In:
  Kuhn & Tucker (eds.), Contributions to the Theory of Games,
  vol. II. Princeton University Press.

For the law-heatmap use case the relevant survey is

  Pintér, M. (2015). The Shapley value, the proper Shapley
  value, and sharing rules. Mathematical Methods of Operations
  Research 82, 187-202.
