Graph reduction unit test pass
parent
46c52bc957
commit
adeac28527
|
@ -469,7 +469,7 @@ namespace gtsam { namespace partition {
|
||||||
reduceGenericGraph(graph, cameraKeys, landmarkKeys, dictionary, reducedGraph);
|
reduceGenericGraph(graph, cameraKeys, landmarkKeys, dictionary, reducedGraph);
|
||||||
cout << "original graph: V" << keys.size() << ", E" << graph.size()
|
cout << "original graph: V" << keys.size() << ", E" << graph.size()
|
||||||
<< " --> reduced graph: V" << cameraKeys.size() << ", E" << reducedGraph.size() << endl;
|
<< " --> reduced graph: V" << cameraKeys.size() << ", E" << reducedGraph.size() << endl;
|
||||||
//result = edgePartitionByMetis(reducedGraph, keyToPartition, workspace, verbose);
|
result = edgePartitionByMetis(reducedGraph, keyToPartition, workspace, verbose);
|
||||||
} else // call Metis to partition the graph to A, B, C
|
} else // call Metis to partition the graph to A, B, C
|
||||||
result = separatorPartitionByMetis(graph, keys, workspace, verbose);
|
result = separatorPartitionByMetis(graph, keys, workspace, verbose);
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ TEST ( Partition, findSeparator2 )
|
||||||
LONGS_EQUAL(-1,workspace.partitionTable[7]);
|
LONGS_EQUAL(-1,workspace.partitionTable[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* *************************************************************************
|
/* *************************************************************************/
|
||||||
// l1-l8 l9-l16 l17-l24
|
// l1-l8 l9-l16 l17-l24
|
||||||
// / | / \ | \
|
// / | / \ | \
|
||||||
// x25 x26 x27 x28
|
// x25 x26 x27 x28
|
||||||
|
|
Loading…
Reference in New Issue