FlashGraph-ng
A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
FG2Tpetra.h
1 #ifndef __FG2TPETRA_H__
2 #define __FG2TPETRA_H__
3 
4 #include "sparse_matrix.h"
5 #include "vertex.h"
6 #include "vertex_index.h"
7 #include "in_mem_storage.h"
8 #include "io_interface.h"
9 
10 #include "Tpetra_Map.hpp"
11 #include "Tpetra_MultiVector.hpp"
12 #include "Tpetra_DefaultPlatform.hpp"
13 #include "Tpetra_CrsMatrix_decl.hpp"
14 #include "Tpetra_CrsMatrix_def.hpp"
15 
16 using Teuchos::RCP;
17 using Teuchos::rcp;
18 using Teuchos::ArrayRCP;
19 using std::cerr;
20 using std::cout;
21 using std::endl;
22 
23 typedef size_t local_ordinal_type;
24 typedef size_t global_ordinal_type;
25 
26 typedef Tpetra::MultiVector<double, global_ordinal_type, global_ordinal_type> MV;
27 
28 typedef Tpetra::Map<local_ordinal_type, global_ordinal_type> map_type;
29 typedef Tpetra::CrsMatrix<double, local_ordinal_type, global_ordinal_type> crs_matrix_type;
30 
31 RCP<crs_matrix_type> create_crs(const std::string &graph_file,
32  fg::vertex_index::ptr index, fg::edge_type type,
33  RCP<map_type> map, int my_rank, size_t edge_data_size);
34 
35 #endif
edge_type
Edge type of an edge in the graph.
Definition: vertex.h:43