Skip to content

Commit

Permalink
OCT delete bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
franklee26 committed May 21, 2019
1 parent b8f7945 commit c8329a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def plotOCTDivision(self, *, left = None, right = None, removeOCT = None):
if (removeOCT == True):
OCTSet = []
for nodes in G.nodes():
if nodes not in L and nodes not in R:
if nodes not in left and nodes not in right:
OCTSet.append(nodes)
G.remove_nodes_from(OCTSet)

Expand All @@ -164,4 +164,4 @@ def clearGraph(self):
e = Embedding(graph = [(1,2),(1,5),(1,3),(2,4),(2,5),(3,5),(3,4)])
#e.generateRandomGraph(10, 25)
L,R = e.greedyBipartite()
e.plotOCTDivision(left = L, right = R, removeOCT = False)
e.plotOCTDivision(left = L, right = R, removeOCT = True)

0 comments on commit c8329a7

Please sign in to comment.