Exploiting Network Boundaries For Spectral Clustering And Tensor Network Generative Modeling