Seol mar théacs é seo: Duality in inhomogeneous random graphs, and the cut metric