Skip to content

Commit 43cb443

Browse files
authored
Merge pull request #13 from KyleAMoore/7-division-by-zero-fix
Closes #7 division by zero fix
2 parents 6c2bb0f + ba9582e commit 43cb443

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ venv.bak/
101101
/site
102102

103103
# mypy
104-
.mypy_cache/
104+
.mypy_cache/

utils/eval_helper.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def clustering_stats(graph_ref_list,
252252
'3path': [1, 2],
253253
'4cycle': [8],
254254
}
255-
COUNT_START_STR = 'orbit counts: \n'
255+
COUNT_START_STR = 'orbit counts:'
256256

257257

258258
def edge_list_reindexed(G):
@@ -280,8 +280,7 @@ def orca(graph):
280280
output = sp.check_output(
281281
['./utils/orca/orca', 'node', '4', 'utils/orca/tmp.txt', 'std'])
282282
output = output.decode('utf8').strip()
283-
284-
idx = output.find(COUNT_START_STR) + len(COUNT_START_STR)
283+
idx = output.find(COUNT_START_STR) + len(COUNT_START_STR) + 2
285284
output = output[idx:]
286285
node_orbit_counts = np.array([
287286
list(map(int,

utils/orca/orca

-83 KB
Binary file not shown.

0 commit comments

Comments
 (0)