A Factor-Graph Approach to Algebraic Topology, With Applications to Kramers–Wannier Duality | IEEE Journals & Magazine | IEEE Xplore