Geometry of the Space of Partitioned Networks: A Unified Theoretical and Computational Framework