-
Notifications
You must be signed in to change notification settings - Fork 6
/
cgraph_paths.h
38 lines (30 loc) · 962 Bytes
/
cgraph_paths.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
#ifndef CGRAPH_PATHS_H_
#define CGRAPH_PATHS_H_
#include "cgen/all.h"
#include "base/cgraph_datatype.h"
#include "base/cgraph_constants.h"
#ifdef __cplusplus
extern "C"{
#endif
struct path *cgraph_get_shortest_path(const cgraph_t graph,
const CGRAPH_INTEGER from,
const CGRAPH_INTEGER to,
const cgraph_neimode_t mode);
struct paths *cgraph_get_shortest_paths_dijkstra(const cgraph_t graph,
CGRAPH_INTEGER from,
atype(CGRAPH_INTEGER) *to,
atype(CGRAPH_REAL) *weights,
cgraph_neimode_t mode);
struct paths *cgraph_get_shortest_paths(const cgraph_t graph,
CGRAPH_INTEGER from,
atype(CGRAPH_INTEGER) *to,
cgraph_neimode_t mode);
struct path *cgraph_get_shortest_path_dijkstra(const cgraph_t graph,
CGRAPH_INTEGER from,
CGRAPH_INTEGER to,
atype(CGRAPH_REAL) *weights,
cgraph_neimode_t mode);
#ifdef __cplusplus
}
#endif
#endif // CGRAPH_PATHS_H_