Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 58.33 KB | Software | 0 0
  1. >sage --python3 setup.py build_ext --inplace
  2.  
  3. Compiling zeroforcing/metagraph/metagraph.pyx because it changed.
  4. [1/1] Cythonizing zeroforcing/metagraph/metagraph.pyx
  5.  
  6. Error compiling Cython file:
  7. ------------------------------------------------------------
  8. ...
  9.  
  10.     cdef mp_bitcnt_t extra
  11.  
  12.     bits.size = size
  13.     if fused_bitset_t is bitset_t:
  14.         bits.limbs = (size - 1) / (8 * LIMB_SIZE) + 1
  15.                                                  ^
  16. ------------------------------------------------------------
  17.  
  18. /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:177:50: Cannot assign type 'double' to 'mp_size_t'
  19.  
  20. Error compiling Cython file:
  21. ------------------------------------------------------------
  22. ...
  23.     bits.size = size
  24.     if fused_bitset_t is bitset_t:
  25.         bits.limbs = (size - 1) / (8 * LIMB_SIZE) + 1
  26.         bits.bits = <mp_limb_t*>check_calloc(bits.limbs, LIMB_SIZE)
  27.     else:
  28.         bits.limbs = ((size - 1) / (8*ALIGNMENT) + 1) * (ALIGNMENT/LIMB_SIZE)
  29.                                                      ^
  30. ------------------------------------------------------------
  31.  
  32. /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:180:54: Cannot assign type 'double' to 'mp_size_t'
  33.  
  34. Error compiling Cython file:
  35. ------------------------------------------------------------
  36. ...
  37.         bits.limbs = ((size - 1) / (8*ALIGNMENT) + 1) * (ALIGNMENT/LIMB_SIZE)
  38.         extra = (ALIGNMENT + LIMB_SIZE - 2) // LIMB_SIZE
  39.         bits.mem = check_calloc(bits.limbs + extra, LIMB_SIZE)
  40.         bits.bits = <mp_limb_t*> align(bits.mem, ALIGNMENT)
  41.         bits.non_zero_chunks_are_initialized = False
  42.         bits.non_zero_chunks = <mp_bitcnt_t*> check_allocarray((bits.limbs*LIMB_SIZE) / ALIGNMENT, sizeof(mp_bitcnt_t))
  43.                                                                                      ^
  44. ------------------------------------------------------------
  45.  
  46. /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:185:86: Cannot assign type 'double' to 'size_t'
  47.  
  48. Error compiling Cython file:
  49. ------------------------------------------------------------
  50. ...
  51.     if size_old == size:
  52.         return 0
  53.     if size <= 0:
  54.         raise ValueError("bitset capacity must be greater than 0")
  55.  
  56.     cdef mp_size_t limbs_new = (size - 1) / (8 * LIMB_SIZE) + 1
  57.                                                            ^
  58. ------------------------------------------------------------
  59.  
  60. /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:206:60: Cannot assign type 'double' to 'mp_size_t'
  61.  
  62. Error compiling Cython file:
  63. ------------------------------------------------------------
  64. ...
  65. from zeroforcing.fastqueue.fastqueue cimport FastQueueForBFS
  66.  
  67. cdef class ZFSearchMetagraph:
  68.     def __cinit__(self, graph_for_zero_forcing):
  69.         self.num_vertices = graph_for_zero_forcing.num_verts()
  70.         self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
  71.                                  ^
  72. ------------------------------------------------------------
  73.  
  74. zeroforcing/metagraph/metagraph.pyx:33:34: Cannot convert 'bitset_t *' to Python object
  75.  
  76. Error compiling Cython file:
  77. ------------------------------------------------------------
  78. ...
  79.         self.num_vertices = graph_for_zero_forcing.num_verts()
  80.         self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
  81.        
  82.        
  83.         # Initialize/clear extend_closure bitsets
  84.         bitset_init(self.filled_set, self.num_vertices)
  85.                   ^
  86. ------------------------------------------------------------
  87.  
  88. zeroforcing/metagraph/metagraph.pyx:37:19: no suitable method found
  89.  
  90. Error compiling Cython file:
  91. ------------------------------------------------------------
  92. ...
  93.         self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
  94.        
  95.        
  96.         # Initialize/clear extend_closure bitsets
  97.         bitset_init(self.filled_set, self.num_vertices)
  98.         bitset_init(self.vertices_to_check, self.num_vertices)
  99.                   ^
  100. ------------------------------------------------------------
  101.  
  102. zeroforcing/metagraph/metagraph.pyx:38:19: no suitable method found
  103.  
  104. Error compiling Cython file:
  105. ------------------------------------------------------------
  106. ...
  107.        
  108.        
  109.         # Initialize/clear extend_closure bitsets
  110.         bitset_init(self.filled_set, self.num_vertices)
  111.         bitset_init(self.vertices_to_check, self.num_vertices)
  112.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  113.                   ^
  114. ------------------------------------------------------------
  115.  
  116. zeroforcing/metagraph/metagraph.pyx:39:19: no suitable method found
  117.  
  118. Error compiling Cython file:
  119. ------------------------------------------------------------
  120. ...
  121.        
  122.         # Initialize/clear extend_closure bitsets
  123.         bitset_init(self.filled_set, self.num_vertices)
  124.         bitset_init(self.vertices_to_check, self.num_vertices)
  125.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  126.         bitset_init(self.filled_neighbors, self.num_vertices)
  127.                   ^
  128. ------------------------------------------------------------
  129.  
  130. zeroforcing/metagraph/metagraph.pyx:40:19: no suitable method found
  131.  
  132. Error compiling Cython file:
  133. ------------------------------------------------------------
  134. ...
  135.         # Initialize/clear extend_closure bitsets
  136.         bitset_init(self.filled_set, self.num_vertices)
  137.         bitset_init(self.vertices_to_check, self.num_vertices)
  138.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  139.         bitset_init(self.filled_neighbors, self.num_vertices)
  140.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  141.                   ^
  142. ------------------------------------------------------------
  143.  
  144. zeroforcing/metagraph/metagraph.pyx:41:19: no suitable method found
  145.  
  146. Error compiling Cython file:
  147. ------------------------------------------------------------
  148. ...
  149.         bitset_init(self.filled_set, self.num_vertices)
  150.         bitset_init(self.vertices_to_check, self.num_vertices)
  151.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  152.         bitset_init(self.filled_neighbors, self.num_vertices)
  153.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  154.         bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
  155.                   ^
  156. ------------------------------------------------------------
  157.  
  158. zeroforcing/metagraph/metagraph.pyx:42:19: no suitable method found
  159.  
  160. Error compiling Cython file:
  161. ------------------------------------------------------------
  162. ...
  163.         bitset_init(self.vertices_to_check, self.num_vertices)
  164.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  165.         bitset_init(self.filled_neighbors, self.num_vertices)
  166.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  167.         bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
  168.         bitset_init(self.meta_vertex, self.num_vertices)
  169.                   ^
  170. ------------------------------------------------------------
  171.  
  172. zeroforcing/metagraph/metagraph.pyx:43:19: no suitable method found
  173.  
  174. Error compiling Cython file:
  175. ------------------------------------------------------------
  176. ...
  177.             self.closed_neighborhood_list[i] = FrozenBitset(graph_for_zero_forcing.neighbors(i) + [i])
  178.        
  179.         cdef int w
  180.         # create pointer to bitset array with neighborhoods
  181.         for v in range(self.num_vertices):
  182.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  183.                       ^
  184. ------------------------------------------------------------
  185.  
  186. zeroforcing/metagraph/metagraph.pyx:59:23: no suitable method found
  187.  
  188. Error compiling Cython file:
  189. ------------------------------------------------------------
  190. ...
  191.        
  192.         cdef int w
  193.         # create pointer to bitset array with neighborhoods
  194.         for v in range(self.num_vertices):
  195.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  196.             bitset_clear(self.neighborhood_array[v])
  197.                        ^
  198. ------------------------------------------------------------
  199.  
  200. zeroforcing/metagraph/metagraph.pyx:60:24: ambiguous overloaded method
  201.  
  202. Error compiling Cython file:
  203. ------------------------------------------------------------
  204. ...
  205.         # create pointer to bitset array with neighborhoods
  206.         for v in range(self.num_vertices):
  207.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  208.             bitset_clear(self.neighborhood_array[v])
  209.             for w in graph_for_zero_forcing.neighbor_iterator(v):
  210.                 bitset_add(self.neighborhood_array[v], w)  
  211.                          ^
  212. ------------------------------------------------------------
  213.  
  214. zeroforcing/metagraph/metagraph.pyx:62:26: ambiguous overloaded method
  215.  
  216. Error compiling Cython file:
  217. ------------------------------------------------------------
  218. ...
  219.        
  220.         #The variable below is just for profiling purposes!
  221.         self.num_vertices_checked = 0
  222.        
  223.     def __dealloc__(self):
  224.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  225.                     ^
  226. ------------------------------------------------------------
  227.  
  228. zeroforcing/metagraph/metagraph.pyx:68:21: Cannot convert Python object to 'void *'
  229.  
  230. Error compiling Cython file:
  231. ------------------------------------------------------------
  232. ...
  233.         self.num_vertices_checked = 0
  234.        
  235.     def __dealloc__(self):
  236.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  237.        
  238.         bitset_free(self.filled_set)
  239.                   ^
  240. ------------------------------------------------------------
  241.  
  242. zeroforcing/metagraph/metagraph.pyx:70:19: ambiguous overloaded method
  243.  
  244. Error compiling Cython file:
  245. ------------------------------------------------------------
  246. ...
  247.        
  248.     def __dealloc__(self):
  249.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  250.        
  251.         bitset_free(self.filled_set)
  252.         bitset_free(self.vertices_to_check)
  253.                   ^
  254. ------------------------------------------------------------
  255.  
  256. zeroforcing/metagraph/metagraph.pyx:71:19: ambiguous overloaded method
  257.  
  258. Error compiling Cython file:
  259. ------------------------------------------------------------
  260. ...
  261.     def __dealloc__(self):
  262.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  263.        
  264.         bitset_free(self.filled_set)
  265.         bitset_free(self.vertices_to_check)
  266.         bitset_free(self.vertices_to_recheck)
  267.                   ^
  268. ------------------------------------------------------------
  269.  
  270. zeroforcing/metagraph/metagraph.pyx:72:19: ambiguous overloaded method
  271.  
  272. Error compiling Cython file:
  273. ------------------------------------------------------------
  274. ...
  275.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  276.        
  277.         bitset_free(self.filled_set)
  278.         bitset_free(self.vertices_to_check)
  279.         bitset_free(self.vertices_to_recheck)
  280.         bitset_free(self.filled_neighbors)
  281.                   ^
  282. ------------------------------------------------------------
  283.  
  284. zeroforcing/metagraph/metagraph.pyx:73:19: ambiguous overloaded method
  285.  
  286. Error compiling Cython file:
  287. ------------------------------------------------------------
  288. ...
  289.        
  290.         bitset_free(self.filled_set)
  291.         bitset_free(self.vertices_to_check)
  292.         bitset_free(self.vertices_to_recheck)
  293.         bitset_free(self.filled_neighbors)
  294.         bitset_free(self.unfilled_neighbors)
  295.                   ^
  296. ------------------------------------------------------------
  297.  
  298. zeroforcing/metagraph/metagraph.pyx:74:19: ambiguous overloaded method
  299.  
  300. Error compiling Cython file:
  301. ------------------------------------------------------------
  302. ...
  303.         bitset_free(self.filled_set)
  304.         bitset_free(self.vertices_to_check)
  305.         bitset_free(self.vertices_to_recheck)
  306.         bitset_free(self.filled_neighbors)
  307.         bitset_free(self.unfilled_neighbors)
  308.         bitset_free(self.filled_neighbors_of_vx_to_fill)
  309.                   ^
  310. ------------------------------------------------------------
  311.  
  312. zeroforcing/metagraph/metagraph.pyx:75:19: ambiguous overloaded method
  313.  
  314. Error compiling Cython file:
  315. ------------------------------------------------------------
  316. ...
  317.         bitset_free(self.vertices_to_check)
  318.         bitset_free(self.vertices_to_recheck)
  319.         bitset_free(self.filled_neighbors)
  320.         bitset_free(self.unfilled_neighbors)
  321.         bitset_free(self.filled_neighbors_of_vx_to_fill)
  322.         bitset_free(self.meta_vertex)
  323.                   ^
  324. ------------------------------------------------------------
  325.  
  326. zeroforcing/metagraph/metagraph.pyx:76:19: ambiguous overloaded method
  327.  
  328. Error compiling Cython file:
  329. ------------------------------------------------------------
  330. ...
  331.     cdef FrozenBitset extend_closure(self, FrozenBitset initially_filled_subset2, FrozenBitset vxs_to_add2):
  332.        
  333.         cdef bitset_t initially_filled_subset
  334.         cdef bitset_t vxs_to_add
  335.        
  336.         bitset_clear(self.filled_set)
  337.                    ^
  338. ------------------------------------------------------------
  339.  
  340. zeroforcing/metagraph/metagraph.pyx:84:20: ambiguous overloaded method
  341.  
  342. Error compiling Cython file:
  343. ------------------------------------------------------------
  344. ...
  345.        
  346.         cdef bitset_t initially_filled_subset
  347.         cdef bitset_t vxs_to_add
  348.        
  349.         bitset_clear(self.filled_set)
  350.         bitset_clear(self.vertices_to_check)
  351.                    ^
  352. ------------------------------------------------------------
  353.  
  354. zeroforcing/metagraph/metagraph.pyx:85:20: ambiguous overloaded method
  355.  
  356. Error compiling Cython file:
  357. ------------------------------------------------------------
  358. ...
  359.         cdef bitset_t initially_filled_subset
  360.         cdef bitset_t vxs_to_add
  361.        
  362.         bitset_clear(self.filled_set)
  363.         bitset_clear(self.vertices_to_check)
  364.         bitset_clear(self.vertices_to_recheck)
  365.                    ^
  366. ------------------------------------------------------------
  367.  
  368. zeroforcing/metagraph/metagraph.pyx:86:20: ambiguous overloaded method
  369.  
  370. Error compiling Cython file:
  371. ------------------------------------------------------------
  372. ...
  373.         cdef bitset_t vxs_to_add
  374.        
  375.         bitset_clear(self.filled_set)
  376.         bitset_clear(self.vertices_to_check)
  377.         bitset_clear(self.vertices_to_recheck)
  378.         bitset_clear(self.filled_neighbors)
  379.                    ^
  380. ------------------------------------------------------------
  381.  
  382. zeroforcing/metagraph/metagraph.pyx:87:20: ambiguous overloaded method
  383.  
  384. Error compiling Cython file:
  385. ------------------------------------------------------------
  386. ...
  387.        
  388.         bitset_clear(self.filled_set)
  389.         bitset_clear(self.vertices_to_check)
  390.         bitset_clear(self.vertices_to_recheck)
  391.         bitset_clear(self.filled_neighbors)
  392.         bitset_clear(self.unfilled_neighbors)
  393.                    ^
  394. ------------------------------------------------------------
  395.  
  396. zeroforcing/metagraph/metagraph.pyx:88:20: ambiguous overloaded method
  397.  
  398. Error compiling Cython file:
  399. ------------------------------------------------------------
  400. ...
  401.         bitset_clear(self.filled_set)
  402.         bitset_clear(self.vertices_to_check)
  403.         bitset_clear(self.vertices_to_recheck)
  404.         bitset_clear(self.filled_neighbors)
  405.         bitset_clear(self.unfilled_neighbors)
  406.         bitset_clear(self.filled_neighbors_of_vx_to_fill)
  407.                    ^
  408. ------------------------------------------------------------
  409.  
  410. zeroforcing/metagraph/metagraph.pyx:89:20: ambiguous overloaded method
  411.  
  412. Error compiling Cython file:
  413. ------------------------------------------------------------
  414. ...
  415.         bitset_clear(self.vertices_to_recheck)
  416.         bitset_clear(self.filled_neighbors)
  417.         bitset_clear(self.unfilled_neighbors)
  418.         bitset_clear(self.filled_neighbors_of_vx_to_fill)
  419.        
  420.         bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
  421.                         ^
  422. ------------------------------------------------------------
  423.  
  424. zeroforcing/metagraph/metagraph.pyx:91:25: Cannot convert Python object to 'bitset_t'
  425.  
  426. Error compiling Cython file:
  427. ------------------------------------------------------------
  428. ...
  429.         bitset_clear(self.unfilled_neighbors)
  430.         bitset_clear(self.filled_neighbors_of_vx_to_fill)
  431.        
  432.         bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
  433.  
  434.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  435.                        ^
  436. ------------------------------------------------------------
  437.  
  438. zeroforcing/metagraph/metagraph.pyx:93:24: Cannot convert Python object to 'bitset_t'
  439.  
  440. Error compiling Cython file:
  441. ------------------------------------------------------------
  442. ...
  443.         bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
  444.  
  445.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  446.  
  447.         for v in range(self.num_vertices):
  448.             if bitset_in(&vxs_to_add2._bitset[0], v):
  449.                        ^
  450. ------------------------------------------------------------
  451.  
  452. zeroforcing/metagraph/metagraph.pyx:96:24: no suitable method found
  453.  
  454. Error compiling Cython file:
  455. ------------------------------------------------------------
  456. ...
  457.  
  458.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  459.  
  460.         for v in range(self.num_vertices):
  461.             if bitset_in(&vxs_to_add2._bitset[0], v):
  462.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  463.                                   ^
  464. ------------------------------------------------------------
  465.  
  466. zeroforcing/metagraph/metagraph.pyx:97:35: ambiguous overloaded method
  467.  
  468. Error compiling Cython file:
  469. ------------------------------------------------------------
  470. ...
  471.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  472.  
  473.         for v in range(self.num_vertices):
  474.             if bitset_in(&vxs_to_add2._bitset[0], v):
  475.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  476.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  477.                            ^
  478. ------------------------------------------------------------
  479.  
  480. zeroforcing/metagraph/metagraph.pyx:98:28: ambiguous overloaded method
  481.  
  482. Error compiling Cython file:
  483. ------------------------------------------------------------
  484. ...
  485.         for v in range(self.num_vertices):
  486.             if bitset_in(&vxs_to_add2._bitset[0], v):
  487.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  488.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  489.            
  490.         bitset_clear(self.vertices_to_recheck)
  491.                    ^
  492. ------------------------------------------------------------
  493.  
  494. zeroforcing/metagraph/metagraph.pyx:100:20: ambiguous overloaded method
  495.  
  496. Error compiling Cython file:
  497. ------------------------------------------------------------
  498. ...
  499.             if bitset_in(&vxs_to_add2._bitset[0], v):
  500.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  501.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  502.            
  503.         bitset_clear(self.vertices_to_recheck)
  504.         while not bitset_isempty(self.vertices_to_check):
  505.                                ^
  506. ------------------------------------------------------------
  507.  
  508. zeroforcing/metagraph/metagraph.pyx:101:32: ambiguous overloaded method
  509.  
  510. Error compiling Cython file:
  511. ------------------------------------------------------------
  512. ...
  513.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  514.            
  515.         bitset_clear(self.vertices_to_recheck)
  516.         while not bitset_isempty(self.vertices_to_check):
  517.             #print "now will check", vertices_to_check
  518.             bitset_clear(self.vertices_to_recheck)
  519.                        ^
  520. ------------------------------------------------------------
  521.  
  522. zeroforcing/metagraph/metagraph.pyx:103:24: ambiguous overloaded method
  523.  
  524. Error compiling Cython file:
  525. ------------------------------------------------------------
  526. ...
  527.         bitset_clear(self.vertices_to_recheck)
  528.         while not bitset_isempty(self.vertices_to_check):
  529.             #print "now will check", vertices_to_check
  530.             bitset_clear(self.vertices_to_recheck)
  531.             for vertex in range(self.num_vertices):
  532.                 if bitset_in(self.vertices_to_check, vertex):
  533.                            ^
  534. ------------------------------------------------------------
  535.  
  536. zeroforcing/metagraph/metagraph.pyx:105:28: no suitable method found
  537.  
  538. Error compiling Cython file:
  539. ------------------------------------------------------------
  540. ...
  541.         while not bitset_isempty(self.vertices_to_check):
  542.             #print "now will check", vertices_to_check
  543.             bitset_clear(self.vertices_to_recheck)
  544.             for vertex in range(self.num_vertices):
  545.                 if bitset_in(self.vertices_to_check, vertex):
  546.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  547.                                       ^
  548. ------------------------------------------------------------
  549.  
  550. zeroforcing/metagraph/metagraph.pyx:106:39: ambiguous overloaded method
  551.  
  552. Error compiling Cython file:
  553. ------------------------------------------------------------
  554. ...
  555.             #print "now will check", vertices_to_check
  556.             bitset_clear(self.vertices_to_recheck)
  557.             for vertex in range(self.num_vertices):
  558.                 if bitset_in(self.vertices_to_check, vertex):
  559.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  560.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  561.                                     ^
  562. ------------------------------------------------------------
  563.  
  564. zeroforcing/metagraph/metagraph.pyx:107:37: ambiguous overloaded method
  565.  
  566. Error compiling Cython file:
  567. ------------------------------------------------------------
  568. ...
  569.             for vertex in range(self.num_vertices):
  570.                 if bitset_in(self.vertices_to_check, vertex):
  571.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  572.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  573.                    
  574.                     if bitset_len(self.unfilled_neighbors) == 1:
  575.                                 ^
  576. ------------------------------------------------------------
  577.  
  578. zeroforcing/metagraph/metagraph.pyx:109:33: ambiguous overloaded method
  579.  
  580. Error compiling Cython file:
  581. ------------------------------------------------------------
  582. ...
  583.                 if bitset_in(self.vertices_to_check, vertex):
  584.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  585.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  586.                    
  587.                     if bitset_len(self.unfilled_neighbors) == 1:
  588.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  589.                                                         ^
  590. ------------------------------------------------------------
  591.  
  592. zeroforcing/metagraph/metagraph.pyx:110:57: ambiguous overloaded method
  593.  
  594. Error compiling Cython file:
  595. ------------------------------------------------------------
  596. ...
  597.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  598.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  599.                    
  600.                     if bitset_len(self.unfilled_neighbors) == 1:
  601.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  602.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  603.                                  ^
  604. ------------------------------------------------------------
  605.  
  606. zeroforcing/metagraph/metagraph.pyx:111:34: no suitable method found
  607.  
  608. Error compiling Cython file:
  609. ------------------------------------------------------------
  610. ...
  611.                    
  612.                     if bitset_len(self.unfilled_neighbors) == 1:
  613.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  614.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  615.                        
  616.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  617.                                           ^
  618. ------------------------------------------------------------
  619.  
  620. zeroforcing/metagraph/metagraph.pyx:113:43: ambiguous overloaded method
  621.  
  622. Error compiling Cython file:
  623. ------------------------------------------------------------
  624. ...
  625.                     if bitset_len(self.unfilled_neighbors) == 1:
  626.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  627.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  628.                        
  629.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  630.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  631.                                     ^
  632. ------------------------------------------------------------
  633.  
  634. zeroforcing/metagraph/metagraph.pyx:114:37: no suitable method found
  635.  
  636. Error compiling Cython file:
  637. ------------------------------------------------------------
  638. ...
  639.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  640.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  641.                        
  642.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  643.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  644.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  645.                                    ^
  646. ------------------------------------------------------------
  647.  
  648. zeroforcing/metagraph/metagraph.pyx:115:36: ambiguous overloaded method
  649.  
  650. Error compiling Cython file:
  651. ------------------------------------------------------------
  652. ...
  653.                        
  654.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  655.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  656.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  657.                        
  658.                         bitset_add(self.filled_set, self.vertex_to_fill)
  659.                                  ^
  660. ------------------------------------------------------------
  661.  
  662. zeroforcing/metagraph/metagraph.pyx:117:34: no suitable method found
  663.  
  664. Error compiling Cython file:
  665. ------------------------------------------------------------
  666. ...
  667.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  668.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  669.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  670.                        
  671.                         bitset_add(self.filled_set, self.vertex_to_fill)
  672.             bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
  673.                       ^
  674. ------------------------------------------------------------
  675.  
  676. zeroforcing/metagraph/metagraph.pyx:118:23: ambiguous overloaded method
  677.  
  678. Error compiling Cython file:
  679. ------------------------------------------------------------
  680. ...
  681.             bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
  682.  
  683.         self.num_vertices_checked = self.num_vertices_checked + 1            
  684.        
  685.         set_to_return = FrozenBitset(capacity=self.num_vertices)
  686.         bitset_copy(&set_to_return._bitset[0], self.filled_set)
  687.                                                   ^
  688. ------------------------------------------------------------
  689.  
  690. zeroforcing/metagraph/metagraph.pyx:123:51: Cannot convert Python object to 'bitset_t'
  691.  
  692. Error compiling Cython file:
  693. ------------------------------------------------------------
  694. ...
  695.         cdef int new_vx_to_make_force
  696.         cdef int cost
  697.         cdef int i
  698.         cdef int num_unfilled_neighbors
  699.  
  700.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  701.                        ^
  702. ------------------------------------------------------------
  703.  
  704. zeroforcing/metagraph/metagraph.pyx:138:24: Cannot convert Python object to 'bitset_t'
  705.  
  706. Error compiling Cython file:
  707. ------------------------------------------------------------
  708. ...
  709.         cdef int num_unfilled_neighbors
  710.  
  711.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  712.        
  713.         for new_vx_to_make_force in self.vertices_set:
  714.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  715.                       ^
  716. ------------------------------------------------------------
  717.  
  718. zeroforcing/metagraph/metagraph.pyx:141:23: ambiguous overloaded method
  719.  
  720. Error compiling Cython file:
  721. ------------------------------------------------------------
  722. ...
  723.  
  724.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  725.        
  726.         for new_vx_to_make_force in self.vertices_set:
  727.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  728.             bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
  729.                             ^
  730. ------------------------------------------------------------
  731.  
  732. zeroforcing/metagraph/metagraph.pyx:142:29: ambiguous overloaded method
  733.  
  734. Error compiling Cython file:
  735. ------------------------------------------------------------
  736. ...
  737.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  738.        
  739.         for new_vx_to_make_force in self.vertices_set:
  740.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  741.             bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
  742.             num_unfilled_neighbors = bitset_len(self.unfilled_neighbors)
  743.                                               ^
  744. ------------------------------------------------------------
  745.  
  746. zeroforcing/metagraph/metagraph.pyx:143:47: ambiguous overloaded method
  747.  
  748. Error compiling Cython file:
  749. ------------------------------------------------------------
  750. ...
  751.             if num_unfilled_neighbors == 0:
  752.                 cost = num_unfilled_neighbors
  753.             else:
  754.                 cost = num_unfilled_neighbors - 1
  755.  
  756.             if not bitset_in(self.meta_vertex, new_vx_to_make_force):
  757.                            ^
  758. ------------------------------------------------------------
  759.  
  760. zeroforcing/metagraph/metagraph.pyx:150:28: ambiguous overloaded method
  761.  
  762. Error compiling Cython file:
  763. ------------------------------------------------------------
  764. ...
  765.         self.num_vertices = graph_for_zero_forcing.num_verts()
  766.         self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
  767.        
  768.        
  769.         # Initialize/clear extend_closure bitsets
  770.         bitset_init(self.filled_set, self.num_vertices)
  771.        ^
  772. ------------------------------------------------------------
  773.  
  774. zeroforcing/metagraph/metagraph.pyx:37:8: Invalid use of fused types, type cannot be specialized
  775.  
  776. Error compiling Cython file:
  777. ------------------------------------------------------------
  778. ...
  779.         self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
  780.        
  781.        
  782.         # Initialize/clear extend_closure bitsets
  783.         bitset_init(self.filled_set, self.num_vertices)
  784.         bitset_init(self.vertices_to_check, self.num_vertices)
  785.        ^
  786. ------------------------------------------------------------
  787.  
  788. zeroforcing/metagraph/metagraph.pyx:38:8: Invalid use of fused types, type cannot be specialized
  789.  
  790. Error compiling Cython file:
  791. ------------------------------------------------------------
  792. ...
  793.        
  794.        
  795.         # Initialize/clear extend_closure bitsets
  796.         bitset_init(self.filled_set, self.num_vertices)
  797.         bitset_init(self.vertices_to_check, self.num_vertices)
  798.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  799.        ^
  800. ------------------------------------------------------------
  801.  
  802. zeroforcing/metagraph/metagraph.pyx:39:8: Invalid use of fused types, type cannot be specialized
  803.  
  804. Error compiling Cython file:
  805. ------------------------------------------------------------
  806. ...
  807.        
  808.         # Initialize/clear extend_closure bitsets
  809.         bitset_init(self.filled_set, self.num_vertices)
  810.         bitset_init(self.vertices_to_check, self.num_vertices)
  811.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  812.         bitset_init(self.filled_neighbors, self.num_vertices)
  813.        ^
  814. ------------------------------------------------------------
  815.  
  816. zeroforcing/metagraph/metagraph.pyx:40:8: Invalid use of fused types, type cannot be specialized
  817.  
  818. Error compiling Cython file:
  819. ------------------------------------------------------------
  820. ...
  821.         # Initialize/clear extend_closure bitsets
  822.         bitset_init(self.filled_set, self.num_vertices)
  823.         bitset_init(self.vertices_to_check, self.num_vertices)
  824.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  825.         bitset_init(self.filled_neighbors, self.num_vertices)
  826.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  827.        ^
  828. ------------------------------------------------------------
  829.  
  830. zeroforcing/metagraph/metagraph.pyx:41:8: Invalid use of fused types, type cannot be specialized
  831.  
  832. Error compiling Cython file:
  833. ------------------------------------------------------------
  834. ...
  835.         bitset_init(self.filled_set, self.num_vertices)
  836.         bitset_init(self.vertices_to_check, self.num_vertices)
  837.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  838.         bitset_init(self.filled_neighbors, self.num_vertices)
  839.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  840.         bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
  841.        ^
  842. ------------------------------------------------------------
  843.  
  844. zeroforcing/metagraph/metagraph.pyx:42:8: Invalid use of fused types, type cannot be specialized
  845.  
  846. Error compiling Cython file:
  847. ------------------------------------------------------------
  848. ...
  849.         bitset_init(self.vertices_to_check, self.num_vertices)
  850.         bitset_init(self.vertices_to_recheck, self.num_vertices)
  851.         bitset_init(self.filled_neighbors, self.num_vertices)
  852.         bitset_init(self.unfilled_neighbors, self.num_vertices)
  853.         bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
  854.         bitset_init(self.meta_vertex, self.num_vertices)
  855.        ^
  856. ------------------------------------------------------------
  857.  
  858. zeroforcing/metagraph/metagraph.pyx:43:8: Invalid use of fused types, type cannot be specialized
  859.  
  860. Error compiling Cython file:
  861. ------------------------------------------------------------
  862. ...
  863.             self.closed_neighborhood_list[i] = FrozenBitset(graph_for_zero_forcing.neighbors(i) + [i])
  864.        
  865.         cdef int w
  866.         # create pointer to bitset array with neighborhoods
  867.         for v in range(self.num_vertices):
  868.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  869.            ^
  870. ------------------------------------------------------------
  871.  
  872. zeroforcing/metagraph/metagraph.pyx:59:12: Invalid use of fused types, type cannot be specialized
  873.  
  874. Error compiling Cython file:
  875. ------------------------------------------------------------
  876. ...
  877.        
  878.         cdef int w
  879.         # create pointer to bitset array with neighborhoods
  880.         for v in range(self.num_vertices):
  881.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  882.             bitset_clear(self.neighborhood_array[v])
  883.            ^
  884. ------------------------------------------------------------
  885.  
  886. zeroforcing/metagraph/metagraph.pyx:60:12: Invalid use of fused types, type cannot be specialized
  887.  
  888. Error compiling Cython file:
  889. ------------------------------------------------------------
  890. ...
  891.         # create pointer to bitset array with neighborhoods
  892.         for v in range(self.num_vertices):
  893.             bitset_init(self.neighborhood_array[v], self.num_vertices)
  894.             bitset_clear(self.neighborhood_array[v])
  895.             for w in graph_for_zero_forcing.neighbor_iterator(v):
  896.                 bitset_add(self.neighborhood_array[v], w)  
  897.                ^
  898. ------------------------------------------------------------
  899.  
  900. zeroforcing/metagraph/metagraph.pyx:62:16: Invalid use of fused types, type cannot be specialized
  901.  
  902. Error compiling Cython file:
  903. ------------------------------------------------------------
  904. ...
  905.         self.num_vertices_checked = 0
  906.        
  907.     def __dealloc__(self):
  908.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  909.        
  910.         bitset_free(self.filled_set)
  911.        ^
  912. ------------------------------------------------------------
  913.  
  914. zeroforcing/metagraph/metagraph.pyx:70:8: Invalid use of fused types, type cannot be specialized
  915.  
  916. Error compiling Cython file:
  917. ------------------------------------------------------------
  918. ...
  919.        
  920.     def __dealloc__(self):
  921.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  922.        
  923.         bitset_free(self.filled_set)
  924.         bitset_free(self.vertices_to_check)
  925.        ^
  926. ------------------------------------------------------------
  927.  
  928. zeroforcing/metagraph/metagraph.pyx:71:8: Invalid use of fused types, type cannot be specialized
  929.  
  930. Error compiling Cython file:
  931. ------------------------------------------------------------
  932. ...
  933.     def __dealloc__(self):
  934.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  935.        
  936.         bitset_free(self.filled_set)
  937.         bitset_free(self.vertices_to_check)
  938.         bitset_free(self.vertices_to_recheck)
  939.        ^
  940. ------------------------------------------------------------
  941.  
  942. zeroforcing/metagraph/metagraph.pyx:72:8: Invalid use of fused types, type cannot be specialized
  943.  
  944. Error compiling Cython file:
  945. ------------------------------------------------------------
  946. ...
  947.         sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
  948.        
  949.         bitset_free(self.filled_set)
  950.         bitset_free(self.vertices_to_check)
  951.         bitset_free(self.vertices_to_recheck)
  952.         bitset_free(self.filled_neighbors)
  953.        ^
  954. ------------------------------------------------------------
  955.  
  956. zeroforcing/metagraph/metagraph.pyx:73:8: Invalid use of fused types, type cannot be specialized
  957.  
  958. Error compiling Cython file:
  959. ------------------------------------------------------------
  960. ...
  961.        
  962.         bitset_free(self.filled_set)
  963.         bitset_free(self.vertices_to_check)
  964.         bitset_free(self.vertices_to_recheck)
  965.         bitset_free(self.filled_neighbors)
  966.         bitset_free(self.unfilled_neighbors)
  967.        ^
  968. ------------------------------------------------------------
  969.  
  970. zeroforcing/metagraph/metagraph.pyx:74:8: Invalid use of fused types, type cannot be specialized
  971.  
  972. Error compiling Cython file:
  973. ------------------------------------------------------------
  974. ...
  975.         bitset_free(self.filled_set)
  976.         bitset_free(self.vertices_to_check)
  977.         bitset_free(self.vertices_to_recheck)
  978.         bitset_free(self.filled_neighbors)
  979.         bitset_free(self.unfilled_neighbors)
  980.         bitset_free(self.filled_neighbors_of_vx_to_fill)
  981.        ^
  982. ------------------------------------------------------------
  983.  
  984. zeroforcing/metagraph/metagraph.pyx:75:8: Invalid use of fused types, type cannot be specialized
  985.  
  986. Error compiling Cython file:
  987. ------------------------------------------------------------
  988. ...
  989.         bitset_free(self.vertices_to_check)
  990.         bitset_free(self.vertices_to_recheck)
  991.         bitset_free(self.filled_neighbors)
  992.         bitset_free(self.unfilled_neighbors)
  993.         bitset_free(self.filled_neighbors_of_vx_to_fill)
  994.         bitset_free(self.meta_vertex)
  995.        ^
  996. ------------------------------------------------------------
  997.  
  998. zeroforcing/metagraph/metagraph.pyx:76:8: Invalid use of fused types, type cannot be specialized
  999.  
  1000. Error compiling Cython file:
  1001. ------------------------------------------------------------
  1002. ...
  1003.     cdef FrozenBitset extend_closure(self, FrozenBitset initially_filled_subset2, FrozenBitset vxs_to_add2):
  1004.        
  1005.         cdef bitset_t initially_filled_subset
  1006.         cdef bitset_t vxs_to_add
  1007.        
  1008.         bitset_clear(self.filled_set)
  1009.        ^
  1010. ------------------------------------------------------------
  1011.  
  1012. zeroforcing/metagraph/metagraph.pyx:84:8: Invalid use of fused types, type cannot be specialized
  1013.  
  1014. Error compiling Cython file:
  1015. ------------------------------------------------------------
  1016. ...
  1017.        
  1018.         cdef bitset_t initially_filled_subset
  1019.         cdef bitset_t vxs_to_add
  1020.        
  1021.         bitset_clear(self.filled_set)
  1022.         bitset_clear(self.vertices_to_check)
  1023.        ^
  1024. ------------------------------------------------------------
  1025.  
  1026. zeroforcing/metagraph/metagraph.pyx:85:8: Invalid use of fused types, type cannot be specialized
  1027.  
  1028. Error compiling Cython file:
  1029. ------------------------------------------------------------
  1030. ...
  1031.         cdef bitset_t initially_filled_subset
  1032.         cdef bitset_t vxs_to_add
  1033.        
  1034.         bitset_clear(self.filled_set)
  1035.         bitset_clear(self.vertices_to_check)
  1036.         bitset_clear(self.vertices_to_recheck)
  1037.        ^
  1038. ------------------------------------------------------------
  1039.  
  1040. zeroforcing/metagraph/metagraph.pyx:86:8: Invalid use of fused types, type cannot be specialized
  1041.  
  1042. Error compiling Cython file:
  1043. ------------------------------------------------------------
  1044. ...
  1045.         cdef bitset_t vxs_to_add
  1046.        
  1047.         bitset_clear(self.filled_set)
  1048.         bitset_clear(self.vertices_to_check)
  1049.         bitset_clear(self.vertices_to_recheck)
  1050.         bitset_clear(self.filled_neighbors)
  1051.        ^
  1052. ------------------------------------------------------------
  1053.  
  1054. zeroforcing/metagraph/metagraph.pyx:87:8: Invalid use of fused types, type cannot be specialized
  1055.  
  1056. Error compiling Cython file:
  1057. ------------------------------------------------------------
  1058. ...
  1059.        
  1060.         bitset_clear(self.filled_set)
  1061.         bitset_clear(self.vertices_to_check)
  1062.         bitset_clear(self.vertices_to_recheck)
  1063.         bitset_clear(self.filled_neighbors)
  1064.         bitset_clear(self.unfilled_neighbors)
  1065.        ^
  1066. ------------------------------------------------------------
  1067.  
  1068. zeroforcing/metagraph/metagraph.pyx:88:8: Invalid use of fused types, type cannot be specialized
  1069.  
  1070. Error compiling Cython file:
  1071. ------------------------------------------------------------
  1072. ...
  1073.         bitset_clear(self.filled_set)
  1074.         bitset_clear(self.vertices_to_check)
  1075.         bitset_clear(self.vertices_to_recheck)
  1076.         bitset_clear(self.filled_neighbors)
  1077.         bitset_clear(self.unfilled_neighbors)
  1078.         bitset_clear(self.filled_neighbors_of_vx_to_fill)
  1079.        ^
  1080. ------------------------------------------------------------
  1081.  
  1082. zeroforcing/metagraph/metagraph.pyx:89:8: Invalid use of fused types, type cannot be specialized
  1083.  
  1084. Error compiling Cython file:
  1085. ------------------------------------------------------------
  1086. ...
  1087.         bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
  1088.  
  1089.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  1090.  
  1091.         for v in range(self.num_vertices):
  1092.             if bitset_in(&vxs_to_add2._bitset[0], v):
  1093.               ^
  1094. ------------------------------------------------------------
  1095.  
  1096. zeroforcing/metagraph/metagraph.pyx:96:15: Invalid use of fused types, type cannot be specialized
  1097.  
  1098. Error compiling Cython file:
  1099. ------------------------------------------------------------
  1100. ...
  1101.  
  1102.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  1103.  
  1104.         for v in range(self.num_vertices):
  1105.             if bitset_in(&vxs_to_add2._bitset[0], v):
  1106.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  1107.                ^
  1108. ------------------------------------------------------------
  1109.  
  1110. zeroforcing/metagraph/metagraph.pyx:97:16: Invalid use of fused types, type cannot be specialized
  1111.  
  1112. Error compiling Cython file:
  1113. ------------------------------------------------------------
  1114. ...
  1115.         bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
  1116.  
  1117.         for v in range(self.num_vertices):
  1118.             if bitset_in(&vxs_to_add2._bitset[0], v):
  1119.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  1120.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  1121.                ^
  1122. ------------------------------------------------------------
  1123.  
  1124. zeroforcing/metagraph/metagraph.pyx:98:16: Invalid use of fused types, type cannot be specialized
  1125.  
  1126. Error compiling Cython file:
  1127. ------------------------------------------------------------
  1128. ...
  1129.         for v in range(self.num_vertices):
  1130.             if bitset_in(&vxs_to_add2._bitset[0], v):
  1131.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  1132.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  1133.            
  1134.         bitset_clear(self.vertices_to_recheck)
  1135.        ^
  1136. ------------------------------------------------------------
  1137.  
  1138. zeroforcing/metagraph/metagraph.pyx:100:8: Invalid use of fused types, type cannot be specialized
  1139.  
  1140. Error compiling Cython file:
  1141. ------------------------------------------------------------
  1142. ...
  1143.             if bitset_in(&vxs_to_add2._bitset[0], v):
  1144.                 bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
  1145.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  1146.            
  1147.         bitset_clear(self.vertices_to_recheck)
  1148.         while not bitset_isempty(self.vertices_to_check):
  1149.                  ^
  1150. ------------------------------------------------------------
  1151.  
  1152. zeroforcing/metagraph/metagraph.pyx:101:18: Invalid use of fused types, type cannot be specialized
  1153.  
  1154. Error compiling Cython file:
  1155. ------------------------------------------------------------
  1156. ...
  1157.                 bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
  1158.            
  1159.         bitset_clear(self.vertices_to_recheck)
  1160.         while not bitset_isempty(self.vertices_to_check):
  1161.             #print "now will check", vertices_to_check
  1162.             bitset_clear(self.vertices_to_recheck)
  1163.            ^
  1164. ------------------------------------------------------------
  1165.  
  1166. zeroforcing/metagraph/metagraph.pyx:103:12: Invalid use of fused types, type cannot be specialized
  1167.  
  1168. Error compiling Cython file:
  1169. ------------------------------------------------------------
  1170. ...
  1171.         bitset_clear(self.vertices_to_recheck)
  1172.         while not bitset_isempty(self.vertices_to_check):
  1173.             #print "now will check", vertices_to_check
  1174.             bitset_clear(self.vertices_to_recheck)
  1175.             for vertex in range(self.num_vertices):
  1176.                 if bitset_in(self.vertices_to_check, vertex):
  1177.                   ^
  1178. ------------------------------------------------------------
  1179.  
  1180. zeroforcing/metagraph/metagraph.pyx:105:19: Invalid use of fused types, type cannot be specialized
  1181.  
  1182. Error compiling Cython file:
  1183. ------------------------------------------------------------
  1184. ...
  1185.         while not bitset_isempty(self.vertices_to_check):
  1186.             #print "now will check", vertices_to_check
  1187.             bitset_clear(self.vertices_to_recheck)
  1188.             for vertex in range(self.num_vertices):
  1189.                 if bitset_in(self.vertices_to_check, vertex):
  1190.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  1191.                    ^
  1192. ------------------------------------------------------------
  1193.  
  1194. zeroforcing/metagraph/metagraph.pyx:106:20: Invalid use of fused types, type cannot be specialized
  1195.  
  1196. Error compiling Cython file:
  1197. ------------------------------------------------------------
  1198. ...
  1199.             #print "now will check", vertices_to_check
  1200.             bitset_clear(self.vertices_to_recheck)
  1201.             for vertex in range(self.num_vertices):
  1202.                 if bitset_in(self.vertices_to_check, vertex):
  1203.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  1204.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  1205.                    ^
  1206. ------------------------------------------------------------
  1207.  
  1208. zeroforcing/metagraph/metagraph.pyx:107:20: Invalid use of fused types, type cannot be specialized
  1209.  
  1210. Error compiling Cython file:
  1211. ------------------------------------------------------------
  1212. ...
  1213.             for vertex in range(self.num_vertices):
  1214.                 if bitset_in(self.vertices_to_check, vertex):
  1215.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  1216.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  1217.                    
  1218.                     if bitset_len(self.unfilled_neighbors) == 1:
  1219.                       ^
  1220. ------------------------------------------------------------
  1221.  
  1222. zeroforcing/metagraph/metagraph.pyx:109:23: Invalid use of fused types, type cannot be specialized
  1223.  
  1224. Error compiling Cython file:
  1225. ------------------------------------------------------------
  1226. ...
  1227.                 if bitset_in(self.vertices_to_check, vertex):
  1228.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  1229.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  1230.                    
  1231.                     if bitset_len(self.unfilled_neighbors) == 1:
  1232.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  1233.                                              ^
  1234. ------------------------------------------------------------
  1235.  
  1236. zeroforcing/metagraph/metagraph.pyx:110:46: Invalid use of fused types, type cannot be specialized
  1237.  
  1238. Error compiling Cython file:
  1239. ------------------------------------------------------------
  1240. ...
  1241.                     bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
  1242.                     bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
  1243.                    
  1244.                     if bitset_len(self.unfilled_neighbors) == 1:
  1245.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  1246.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  1247.                        ^
  1248. ------------------------------------------------------------
  1249.  
  1250. zeroforcing/metagraph/metagraph.pyx:111:24: Invalid use of fused types, type cannot be specialized
  1251.  
  1252. Error compiling Cython file:
  1253. ------------------------------------------------------------
  1254. ...
  1255.                    
  1256.                     if bitset_len(self.unfilled_neighbors) == 1:
  1257.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  1258.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  1259.                        
  1260.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  1261.                        ^
  1262. ------------------------------------------------------------
  1263.  
  1264. zeroforcing/metagraph/metagraph.pyx:113:24: Invalid use of fused types, type cannot be specialized
  1265.  
  1266. Error compiling Cython file:
  1267. ------------------------------------------------------------
  1268. ...
  1269.                     if bitset_len(self.unfilled_neighbors) == 1:
  1270.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  1271.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  1272.                        
  1273.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  1274.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  1275.                        ^
  1276. ------------------------------------------------------------
  1277.  
  1278. zeroforcing/metagraph/metagraph.pyx:114:24: Invalid use of fused types, type cannot be specialized
  1279.  
  1280. Error compiling Cython file:
  1281. ------------------------------------------------------------
  1282. ...
  1283.                         self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
  1284.                         bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
  1285.                        
  1286.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  1287.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  1288.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  1289.                        ^
  1290. ------------------------------------------------------------
  1291.  
  1292. zeroforcing/metagraph/metagraph.pyx:115:24: Invalid use of fused types, type cannot be specialized
  1293.  
  1294. Error compiling Cython file:
  1295. ------------------------------------------------------------
  1296. ...
  1297.                        
  1298.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  1299.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  1300.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  1301.                        
  1302.                         bitset_add(self.filled_set, self.vertex_to_fill)
  1303.                        ^
  1304. ------------------------------------------------------------
  1305.  
  1306. zeroforcing/metagraph/metagraph.pyx:117:24: Invalid use of fused types, type cannot be specialized
  1307.  
  1308. Error compiling Cython file:
  1309. ------------------------------------------------------------
  1310. ...
  1311.                         bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
  1312.                         bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
  1313.                         bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
  1314.                        
  1315.                         bitset_add(self.filled_set, self.vertex_to_fill)
  1316.             bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
  1317.            ^
  1318. ------------------------------------------------------------
  1319.  
  1320. zeroforcing/metagraph/metagraph.pyx:118:12: Invalid use of fused types, type cannot be specialized
  1321.  
  1322. Error compiling Cython file:
  1323. ------------------------------------------------------------
  1324. ...
  1325.         cdef int num_unfilled_neighbors
  1326.  
  1327.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  1328.        
  1329.         for new_vx_to_make_force in self.vertices_set:
  1330.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  1331.            ^
  1332. ------------------------------------------------------------
  1333.  
  1334. zeroforcing/metagraph/metagraph.pyx:141:12: Invalid use of fused types, type cannot be specialized
  1335.  
  1336. Error compiling Cython file:
  1337. ------------------------------------------------------------
  1338. ...
  1339.  
  1340.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  1341.        
  1342.         for new_vx_to_make_force in self.vertices_set:
  1343.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  1344.             bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
  1345.            ^
  1346. ------------------------------------------------------------
  1347.  
  1348. zeroforcing/metagraph/metagraph.pyx:142:12: Invalid use of fused types, type cannot be specialized
  1349.  
  1350. Error compiling Cython file:
  1351. ------------------------------------------------------------
  1352. ...
  1353.         bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
  1354.        
  1355.         for new_vx_to_make_force in self.vertices_set:
  1356.             bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
  1357.             bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
  1358.             num_unfilled_neighbors = bitset_len(self.unfilled_neighbors)
  1359.                                     ^
  1360. ------------------------------------------------------------
  1361.  
  1362. zeroforcing/metagraph/metagraph.pyx:143:37: Invalid use of fused types, type cannot be specialized
  1363.  
  1364. Error compiling Cython file:
  1365. ------------------------------------------------------------
  1366. ...
  1367.             if num_unfilled_neighbors == 0:
  1368.                 cost = num_unfilled_neighbors
  1369.             else:
  1370.                 cost = num_unfilled_neighbors - 1
  1371.  
  1372.             if not bitset_in(self.meta_vertex, new_vx_to_make_force):
  1373.                   ^
  1374. ------------------------------------------------------------
  1375.  
  1376. zeroforcing/metagraph/metagraph.pyx:150:19: Invalid use of fused types, type cannot be specialized
  1377. Traceback (most recent call last):
  1378.   File "/mnt/e/projects/python/Zero-Forcing-Number/setup.py", line 26, in <module>
  1379.     ext_modules=cythonize(
  1380.   File "/mnt/e/projects/python/sage/local/var/lib/sage/venv-python3.10.5/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1127, in cythonize
  1381.     cythonize_one(*args)
  1382.   File "/mnt/e/projects/python/sage/local/var/lib/sage/venv-python3.10.5/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1250, in cythonize_one
  1383.     raise CompileError(None, pyx_file)
  1384. Cython.Compiler.Errors.CompileError: zeroforcing/metagraph/metagraph.pyx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement