-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphCast.pxd
More file actions
31 lines (27 loc) · 856 Bytes
/
Copy pathGraphCast.pxd
File metadata and controls
31 lines (27 loc) · 856 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
# disutils: language = c++
from libcpp.vector cimport vector
from libcpp.string cimport string
cdef extern from "GraphCast.cpp":
pass
cdef extern from "GraphCast.h" namespace "interface":
cdef cppclass GraphCast:
#void* N_ptr
#igraph_t* G_ptr
int num_verts
float edge_cost
float vert_cost
float cluster_cost
float temp
int n
float spikes
int _len
vector[int] rows
vector[int] cols
GraphCast() except +
GraphCast(int, float, float, float, float) except +
GraphCast(int, float, int, float, float, float, float) except +
void Metropolis(int iterations, int chunk_size, int dump_rate,
string write_dir, int seed)
float getEnergy()
void print_components()
void getGraph()