hierarchical graph models