-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGraphSequenceTest.h
More file actions
52 lines (43 loc) · 1.21 KB
/
Copy pathGraphSequenceTest.h
File metadata and controls
52 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* WaveletTreeNoptrs.h
* Copyright (C) 2013, Nicolás Lehmann.
*
* Class for testing query times for graph
* based on repair waveletree
*
*/
#ifndef GRAPH_SEQUENCE_TEST_H
#define GRAPH_SEQUENCE_TEST_H
#include <libcdsBasics.h>
#include <Mapper.h>
#include <SequenceBuilder.h>
#include <BitSequenceBuilder.h>
#include "GraphSequence.h"
#include "RePairWaveletTree.h"
namespace cds_static
{
class GraphSequenceTest : public GraphSequence
{
public:
virtual ~GraphSequenceTest();
/**
* Retrieves all direct neighbors of node <var>n</var>
* and return the average tieme required per edge.
* @param n Node identifier
* @param fp Stream to write a log
* */
double testDirectNeighbors(uint n, ofstream &fp) const;
/**
* Retrieves all reverse neighbors of node <var>n</var>
* and return the average tieme required per edge.
* @param n Node identifier
* @param fp Stream to write a log
* */
double testReverseNeighbors(uint n, ofstream &fp) const;
static GraphSequenceTest * load(ifstream & fp);
/*On demand configuration*/
void rpwvt_conf(uint repair_sample, uint max_len, uint occ_sample, double alpha);
protected:
GraphSequenceTest();
};
};
#endif