Guest User

Untitled

a guest
Nov 14th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def getKnightsPath(i,j,n):
  2. a = getmindegree(i,j,n)
  3. bn = MyBoard(n)
  4. for i in a:
  5. bn.remove_node(i)
  6. remove = bn.edges(i)
  7. bn.remove_edges_from(remove)
  8. #I want these values below to go back in the function to find b?
  9.  
  10. for d in a:
  11. i = d[0]
  12. j = d[1]
  13. b = getmindegree(i,j,n)
  14. return b
Add Comment
Please, Sign In to add comment