Disabled count of components of input graph, because its wasting too much memory.
This commit is contained in:
parent
8148fad464
commit
897f328b45
@ -45,7 +45,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
typedef ContractionCleanup::Edge::EdgeData EdgeData;
|
typedef ContractionCleanup::Edge::EdgeData EdgeData;
|
||||||
typedef DynamicGraph<EdgeData>::InputEdge GraphEdge;
|
typedef DynamicGraph<EdgeData>::InputEdge GridEdge;
|
||||||
|
|
||||||
vector<NodeInfo> * int2ExtNodeMap = new vector<NodeInfo>();
|
vector<NodeInfo> * int2ExtNodeMap = new vector<NodeInfo>();
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
Contractor* contractor = new Contractor( n, edgeList );
|
Contractor* contractor = new Contractor( n, edgeList );
|
||||||
|
|
||||||
cout << "Number of connected components: " << contractor->GetNumberOfComponents() << endl;
|
// cout << "Number of connected components: " << contractor->GetNumberOfComponents() << endl;
|
||||||
|
|
||||||
contractor->Run();
|
contractor->Run();
|
||||||
|
|
||||||
@ -98,13 +98,13 @@ int main (int argc, char *argv[])
|
|||||||
ContractionCleanup * cleanup = new ContractionCleanup(n, contractedEdges);
|
ContractionCleanup * cleanup = new ContractionCleanup(n, contractedEdges);
|
||||||
cleanup->Run();
|
cleanup->Run();
|
||||||
|
|
||||||
std::vector< GraphEdge> cleanedEdgeList;
|
std::vector< GridEdge> cleanedEdgeList;
|
||||||
cleanup->GetData(cleanedEdgeList);
|
cleanup->GetData(cleanedEdgeList);
|
||||||
|
|
||||||
ofstream edgeOutFile(edgeOut, ios::binary);
|
ofstream edgeOutFile(edgeOut, ios::binary);
|
||||||
|
|
||||||
//Serializing the edge list.
|
//Serializing the edge list.
|
||||||
for(std::vector< GraphEdge>::iterator it = cleanedEdgeList.begin(); it != cleanedEdgeList.end(); it++)
|
for(std::vector< GridEdge>::iterator it = cleanedEdgeList.begin(); it != cleanedEdgeList.end(); it++)
|
||||||
{
|
{
|
||||||
int distance= it->data.distance;
|
int distance= it->data.distance;
|
||||||
assert(distance > 0);
|
assert(distance > 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user