COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
mcl2mtx.cpp
Go to the documentation of this file.
1#include <iostream>
2#include <string>
3#include <fstream>
4#include <sstream>
5#include <vector>
6#include <algorithm>
7#include <chrono>
8#include <functional>
9#include <cmath>
10#include <map>
11#include <tuple>
12#include <cstdlib>
13#include <cstdio>
14#include <limits>
15#include "MMConverter.h"
16
17using namespace std;
18#define COMPRESS_STRING
19
20int main(int argc, char* argv[])
21{
22 if(argc < 3)
23 {
24 cout << "Usage: ./mcl2mtx <full_path_to_input> <outputprefix>" << endl;
25 return 0;
26 }
27
28 cout << "reading input matrix in MCL format... " << endl;
29
30 string dictname = "Vertex_Dict_";
31 dictname += string(argv[2]);
32 ofstream dictout(dictname);
33
34 MMConverter(string(argv[1]), dictout, string(argv[2]));
35 dictout.close();
36}
int main()
Definition Driver.cpp:12
void MMConverter(const string &filename, ofstream &dictout, const string &outprefix)