Continued implementation of PBQP solver: Fixed errors and warnings.
[libfirm] / kaps.h
1 #ifndef KAPS_KAPS_H
2 #define KAPS_KAPS_H
3
4 #include "pbqp_t.h"
5
6 /**
7  * Create an empty PBQP instance with the given number of nodes.
8  */
9 pbqp* alloc_pbqp(int number_nodes);
10
11 /**
12  * Free the given PBQP.
13  */
14 void free_pbqp(pbqp *pbqp);
15
16 /**
17  * Add costs vector to given node.
18  */
19 void add_node_costs(pbqp *pbqp, int node_index, vector *costs);
20
21 /**
22  * Add costs matrix between given nodes.
23  */
24 void add_edge_costs(pbqp *pbqp, int src_index, int tgt_index, matrix *costs);
25
26 pbqp_edge *get_edge(pbqp *pbqp, int src_index, int tgt_index);
27 pbqp_node *get_node(pbqp *pbqp, int index);
28
29 #endif /* KAPS_KAPS_H */