-
Notifications
You must be signed in to change notification settings - Fork 0
/
0_2013_Karimi.h
29 lines (28 loc) · 979 Bytes
/
0_2013_Karimi.h
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
#pragma once
#include <iostream>
#include <fstream>
#include <vector>
#include <windows.h>
#include <algorithm>
#include <numeric>
namespace karimi {
class Graph {
private:
unsigned short graph_size;
unsigned short max_depth;
unsigned short rootnode = 0;
alignas(64) std::vector<long long> cycles;
alignas(64) std::vector<char> visited;
alignas(64) std::vector<char> blocked;
alignas(64) std::vector<std::vector<unsigned short>> Uadj;
alignas(64) std::vector<std::vector<unsigned short>> Wadj;
unsigned short Cycles(const unsigned short node, const unsigned short depth);
void Unblock(unsigned short k);
void RemoveNode(unsigned short node);
public:
Graph(const unsigned short num_nodes, const unsigned short search_depth); // Constructor
void DFS(unsigned short max_message_size);
void AddUndirectedEdge(const unsigned short v, const unsigned short w);
};
void Foo(std::string code_name, unsigned short depth, unsigned short rootnode_order);
}