-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGraph.h
41 lines (31 loc) · 868 Bytes
/
Graph.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
30
31
32
33
34
35
36
37
38
39
40
41
#include "globals.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <boost/graph/adjacency_list.hpp>
#include "States.h"
#include "Transition.h"
#ifndef GRAPH_H
#define GRAPH_H
using namespace boost;
struct state_t {
typedef vertex_property_tag kind;
};
struct transition_t {
typedef edge_property_tag kind;
};
/**
* Type representing property of a vertex in a graph.
*/
typedef property<state_t, BaseState *> VertexProperty;
/**
* Type representing property of an edge in a graph.
*/
typedef property<transition_t, Transition *> EdgeProperty;
/**
* Typedef for the Graph type used.
*/
typedef adjacency_list<vecS, vecS, directedS, VertexProperty, EdgeProperty> MyGraphType;
typedef graph_traits<MyGraphType>::vertex_descriptor VertexType;
typedef graph_traits<MyGraphType>::edge_descriptor EdgeType;
#endif // GRAPH_H