altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
graph.h
Go to the documentation of this file.
1 #include "include.h"
2 #include "heap.h"
3 
4 #ifndef GRAPH_H
5 #define GRAPH_H
6 
7 class Graph
8 {
9 public:
10  Graph();
11  void load(graph_node_t *node, int num_nodes);
12 // int insert(graph_node_t *node);
13 // int remove(int i);
14  float *dijkstra(int start);
15  int *dijkstra_path(int start, int end, int *path_length);
16  int *astar_path(int *path, ref_t *ref, int start, int end, int *path_length);
17  int modify_weight(int seq1, int seq2, float weight);
18  int size();
19  ~Graph();
20 private:
21  int num_nodes;
22  graph_node_t *node;
23 };
24 #endif