Skip to content

Commit 38d5785

Browse files
committed
Remove unused util functions
1 parent 0aef6ba commit 38d5785

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

graphiit/utils.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,24 +144,3 @@ def convert_be_tpm_to_le(be_tpm):
144144
le_tpm[i, :] = be_tpm[be_tpm_row, :]
145145

146146
return le_tpm
147-
148-
def all_possible_be_states(graph):
149-
# unused
150-
state_index = 0
151-
number_of_nodes = len(graph)
152-
number_of_states = 2 ** len(graph)
153-
while state_index < number_of_states:
154-
yield be_index2state(state_index, number_of_nodes)
155-
state_index += 1
156-
157-
def powerset(iterable):
158-
# unused
159-
# https://docs.python.org/2/library/itertools.html
160-
"powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
161-
s = list(iterable)
162-
return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
163-
164-
165-
def bit(boolean):
166-
# unused
167-
return int(boolean)

0 commit comments

Comments
 (0)