Groupoids And Semigroups In Homology Vs Analogy