-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraph_DFS.h
More file actions
35 lines (27 loc) · 776 Bytes
/
Graph_DFS.h
File metadata and controls
35 lines (27 loc) · 776 Bytes
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
//
// Created by kamil on 27.11.16.
//
#pragma once
#include <vector>
#include <set>
#include <map>
#include <chrono>
#include <fstream>
#include "Point.h"
#include "Segment.h"
#include "VectorHash.h"
#include "Graph.h"
class Graph_DFS : public Graph
{
private:
void DFS(int v, int parent);
std::vector<int> normalize(std::vector<int> path);
std::vector<int> invert(std::vector<int> path);
bool is_new(std::vector<int>& path);
static void run_repetition(Graph_DFS& g, std::map<long long int,double>& stats);
public:
Graph_DFS(std::vector<Segment>& segments, std::string filename);
Graph_DFS(int V, int E, std::string filename);
void find_cycles();
static void get_statistics(int v, int e, int repetitions, std::string filename);
};