}
@Test
public void testAutoCollapse() {
Collapser collapser = new Collapser();
GraphModel testGraph = new GraphModel();
GraphNode srcNodes[] =
TestUtils.buildComplete(testGraph, 5, SampleRelation.sampleRelation);
assertGraphNodesEdges(testGraph, 5, 10);
MultipleDirectedRelationFinder finder =
new MultipleDirectedRelationFinder();
finder.addRelation(SampleRelation.sampleRelation, true, false);
TreeModel treeData = new HierarchicalTreeModel(
testGraph.computeSuccessorHierarchy(finder));
@SuppressWarnings("unused")
Collection<CollapseData> collapseChanges =
collapser.collapseTree(testGraph, treeData);