All Distance Sketch  0.1
All distance sketch based algorithms
snap_graph_adaptor.h
1 #ifndef SRC_GRAPH_SNAP_GRAPH_ADAPTOR_H_
2 #define SRC_GRAPH_SNAP_GRAPH_ADAPTOR_H_
3 
4 #include <Snap.h>
5 #undef min
6 #undef max
7 #undef Fail
8 #undef __Bool
9 #include "graph.h"
10 
11 namespace all_distance_sketch {
12 namespace graph {
13 
14 typedef TUNGraph TUnDirectedGraph;
15 typedef TNGraph TDirectedGraph;
16 
17 template<>
18 struct GraphTrait< TUnDirectedGraph > {
19  static const bool directed = false;
20 };
21 
22 template<>
23 struct GraphTrait< TDirectedGraph > {
24  static const bool directed = true;
25 };
26 
27 
28 } // namespace graph
29 } // namespace all_distance_sketch
30 
31 #endif // SRC_GRAPH_SNAP_GRAPH_ADAPTOR_H_
Definition: common.h:53
Graph class.