diff --git a/scott/structs/graph.py b/scott/structs/graph.py index c0ce98d..9e6f1ee 100644 --- a/scott/structs/graph.py +++ b/scott/structs/graph.py @@ -444,7 +444,8 @@ def filt(i) : #print("PERMUT") - permut = flatten(permut) + if len(permut) > 0: + permut = flatten(permut) #print(permut) id_to_score_tup = [ (k, v) for i, (k, v) in enumerate(id_to_score.items())]