cartesian package:algebraic-graphs

Compute the Cartesian product of two sets, applying a function to each resulting pair.