Graph pairs and their entropies: modularity problems