new file for AgglomerativeGraph