Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >sage --python3 setup.py build_ext --inplace
- Compiling zeroforcing/metagraph/metagraph.pyx because it changed.
- [1/1] Cythonizing zeroforcing/metagraph/metagraph.pyx
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef mp_bitcnt_t extra
- bits.size = size
- if fused_bitset_t is bitset_t:
- bits.limbs = (size - 1) / (8 * LIMB_SIZE) + 1
- ^
- ------------------------------------------------------------
- /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:177:50: Cannot assign type 'double' to 'mp_size_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bits.size = size
- if fused_bitset_t is bitset_t:
- bits.limbs = (size - 1) / (8 * LIMB_SIZE) + 1
- bits.bits = <mp_limb_t*>check_calloc(bits.limbs, LIMB_SIZE)
- else:
- bits.limbs = ((size - 1) / (8*ALIGNMENT) + 1) * (ALIGNMENT/LIMB_SIZE)
- ^
- ------------------------------------------------------------
- /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:180:54: Cannot assign type 'double' to 'mp_size_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bits.limbs = ((size - 1) / (8*ALIGNMENT) + 1) * (ALIGNMENT/LIMB_SIZE)
- extra = (ALIGNMENT + LIMB_SIZE - 2) // LIMB_SIZE
- bits.mem = check_calloc(bits.limbs + extra, LIMB_SIZE)
- bits.bits = <mp_limb_t*> align(bits.mem, ALIGNMENT)
- bits.non_zero_chunks_are_initialized = False
- bits.non_zero_chunks = <mp_bitcnt_t*> check_allocarray((bits.limbs*LIMB_SIZE) / ALIGNMENT, sizeof(mp_bitcnt_t))
- ^
- ------------------------------------------------------------
- /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:185:86: Cannot assign type 'double' to 'size_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if size_old == size:
- return 0
- if size <= 0:
- raise ValueError("bitset capacity must be greater than 0")
- cdef mp_size_t limbs_new = (size - 1) / (8 * LIMB_SIZE) + 1
- ^
- ------------------------------------------------------------
- /mnt/e/projects/python/sage/src/sage/data_structures/bitset_base.pxd:206:60: Cannot assign type 'double' to 'mp_size_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- from zeroforcing.fastqueue.fastqueue cimport FastQueueForBFS
- cdef class ZFSearchMetagraph:
- def __cinit__(self, graph_for_zero_forcing):
- self.num_vertices = graph_for_zero_forcing.num_verts()
- self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:33:34: Cannot convert 'bitset_t *' to Python object
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.num_vertices = graph_for_zero_forcing.num_verts()
- self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:37:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:38:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:39:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:40:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:41:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:42:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
- bitset_init(self.meta_vertex, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:43:19: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.closed_neighborhood_list[i] = FrozenBitset(graph_for_zero_forcing.neighbors(i) + [i])
- cdef int w
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:59:23: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef int w
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- bitset_clear(self.neighborhood_array[v])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:60:24: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- bitset_clear(self.neighborhood_array[v])
- for w in graph_for_zero_forcing.neighbor_iterator(v):
- bitset_add(self.neighborhood_array[v], w)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:62:26: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- #The variable below is just for profiling purposes!
- self.num_vertices_checked = 0
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:68:21: Cannot convert Python object to 'void *'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.num_vertices_checked = 0
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:70:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:71:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:72:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:73:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:74:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- bitset_free(self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:75:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- bitset_free(self.filled_neighbors_of_vx_to_fill)
- bitset_free(self.meta_vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:76:19: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef FrozenBitset extend_closure(self, FrozenBitset initially_filled_subset2, FrozenBitset vxs_to_add2):
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:84:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:85:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:86:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:87:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- bitset_clear(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:88:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- bitset_clear(self.unfilled_neighbors)
- bitset_clear(self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:89:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- bitset_clear(self.unfilled_neighbors)
- bitset_clear(self.filled_neighbors_of_vx_to_fill)
- bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:91:25: Cannot convert Python object to 'bitset_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.unfilled_neighbors)
- bitset_clear(self.filled_neighbors_of_vx_to_fill)
- bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:93:24: Cannot convert Python object to 'bitset_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:96:24: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:97:35: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:98:28: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:100:20: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:101:32: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:103:24: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:105:28: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:106:39: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:107:37: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:109:33: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:110:57: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:111:34: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:113:43: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:114:37: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:115:36: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- bitset_add(self.filled_set, self.vertex_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:117:34: no suitable method found
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- bitset_add(self.filled_set, self.vertex_to_fill)
- bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:118:23: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
- self.num_vertices_checked = self.num_vertices_checked + 1
- set_to_return = FrozenBitset(capacity=self.num_vertices)
- bitset_copy(&set_to_return._bitset[0], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:123:51: Cannot convert Python object to 'bitset_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef int new_vx_to_make_force
- cdef int cost
- cdef int i
- cdef int num_unfilled_neighbors
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:138:24: Cannot convert Python object to 'bitset_t'
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef int num_unfilled_neighbors
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:141:23: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:142:29: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
- num_unfilled_neighbors = bitset_len(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:143:47: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if num_unfilled_neighbors == 0:
- cost = num_unfilled_neighbors
- else:
- cost = num_unfilled_neighbors - 1
- if not bitset_in(self.meta_vertex, new_vx_to_make_force):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:150:28: ambiguous overloaded method
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.num_vertices = graph_for_zero_forcing.num_verts()
- self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:37:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.neighborhood_array = <bitset_t*> sig_malloc(self.num_vertices*sizeof(bitset_t)) #ALLOCATE NEIGHBORHOOD_ARRAY
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:38:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:39:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:40:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # Initialize/clear extend_closure bitsets
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:41:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_init(self.filled_set, self.num_vertices)
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:42:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_init(self.vertices_to_check, self.num_vertices)
- bitset_init(self.vertices_to_recheck, self.num_vertices)
- bitset_init(self.filled_neighbors, self.num_vertices)
- bitset_init(self.unfilled_neighbors, self.num_vertices)
- bitset_init(self.filled_neighbors_of_vx_to_fill, self.num_vertices)
- bitset_init(self.meta_vertex, self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:43:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.closed_neighborhood_list[i] = FrozenBitset(graph_for_zero_forcing.neighbors(i) + [i])
- cdef int w
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:59:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef int w
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- bitset_clear(self.neighborhood_array[v])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:60:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- # create pointer to bitset array with neighborhoods
- for v in range(self.num_vertices):
- bitset_init(self.neighborhood_array[v], self.num_vertices)
- bitset_clear(self.neighborhood_array[v])
- for w in graph_for_zero_forcing.neighbor_iterator(v):
- bitset_add(self.neighborhood_array[v], w)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:62:16: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.num_vertices_checked = 0
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:70:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:71:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- def __dealloc__(self):
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:72:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- sig_free(self.neighborhood_array) #DEALLOCATE NEIGHBORHOOD_ARRAY
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:73:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:74:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.filled_set)
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- bitset_free(self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:75:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_free(self.vertices_to_check)
- bitset_free(self.vertices_to_recheck)
- bitset_free(self.filled_neighbors)
- bitset_free(self.unfilled_neighbors)
- bitset_free(self.filled_neighbors_of_vx_to_fill)
- bitset_free(self.meta_vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:76:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef FrozenBitset extend_closure(self, FrozenBitset initially_filled_subset2, FrozenBitset vxs_to_add2):
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:84:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:85:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t initially_filled_subset
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:86:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef bitset_t vxs_to_add
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:87:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- bitset_clear(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:88:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.filled_set)
- bitset_clear(self.vertices_to_check)
- bitset_clear(self.vertices_to_recheck)
- bitset_clear(self.filled_neighbors)
- bitset_clear(self.unfilled_neighbors)
- bitset_clear(self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:89:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_union(self.filled_set, &initially_filled_subset2._bitset[0], &vxs_to_add2._bitset[0])
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:96:15: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:97:16: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.vertices_to_check, &vxs_to_add2._bitset[0])
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:98:16: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- for v in range(self.num_vertices):
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:100:8: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_in(&vxs_to_add2._bitset[0], v):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[v], self.filled_set)
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:101:18: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_union(self.vertices_to_check, self.vertices_to_check, self.filled_neighbors)
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:103:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_clear(self.vertices_to_recheck)
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:105:19: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- while not bitset_isempty(self.vertices_to_check):
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:106:20: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- #print "now will check", vertices_to_check
- bitset_clear(self.vertices_to_recheck)
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:107:20: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- for vertex in range(self.num_vertices):
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:109:23: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_in(self.vertices_to_check, vertex):
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:110:46: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors, self.neighborhood_array[vertex], self.filled_set)
- bitset_difference(self.unfilled_neighbors, self.neighborhood_array[vertex], self.filled_neighbors)
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:111:24: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:113:24: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if bitset_len(self.unfilled_neighbors) == 1:
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:114:24: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- self.vertex_to_fill = bitset_next(self.unfilled_neighbors, 0)
- bitset_add(self.vertices_to_recheck, self.vertex_to_fill)
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:115:24: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- bitset_add(self.filled_set, self.vertex_to_fill)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:117:24: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_intersection(self.filled_neighbors_of_vx_to_fill, self.neighborhood_array[self.vertex_to_fill], self.filled_set)
- bitset_remove(self.filled_neighbors_of_vx_to_fill, vertex)
- bitset_union(self.vertices_to_recheck, self.vertices_to_recheck, self.filled_neighbors_of_vx_to_fill)
- bitset_add(self.filled_set, self.vertex_to_fill)
- bitset_copy(self.vertices_to_check, self.vertices_to_recheck)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:118:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- cdef int num_unfilled_neighbors
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:141:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:142:12: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- bitset_copy(self.meta_vertex, &meta_vertex._bitset[0])
- for new_vx_to_make_force in self.vertices_set:
- bitset_copy(self.unfilled_neighbors, self.neighborhood_array[new_vx_to_make_force])
- bitset_difference(self.unfilled_neighbors, self.unfilled_neighbors, self.meta_vertex)
- num_unfilled_neighbors = bitset_len(self.unfilled_neighbors)
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:143:37: Invalid use of fused types, type cannot be specialized
- Error compiling Cython file:
- ------------------------------------------------------------
- ...
- if num_unfilled_neighbors == 0:
- cost = num_unfilled_neighbors
- else:
- cost = num_unfilled_neighbors - 1
- if not bitset_in(self.meta_vertex, new_vx_to_make_force):
- ^
- ------------------------------------------------------------
- zeroforcing/metagraph/metagraph.pyx:150:19: Invalid use of fused types, type cannot be specialized
- Traceback (most recent call last):
- File "/mnt/e/projects/python/Zero-Forcing-Number/setup.py", line 26, in <module>
- ext_modules=cythonize(
- 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
- cythonize_one(*args)
- 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
- raise CompileError(None, pyx_file)
- Cython.Compiler.Errors.CompileError: zeroforcing/metagraph/metagraph.pyx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement