forked from askubis/RESpecTa
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraph.h
More file actions
32 lines (22 loc) · 701 Bytes
/
Graph.h
File metadata and controls
32 lines (22 loc) · 701 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
#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;
};
typedef property<state_t, BaseState *> VertexProperty;
typedef property<transition_t, Transition *> EdgeProperty;
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