Skip to content

Instantly share code, notes, and snippets.

@richo
Created April 7, 2013 07:08
Show Gist options
  • Select an option

  • Save richo/5329393 to your computer and use it in GitHub Desktop.

Select an option

Save richo/5329393 to your computer and use it in GitHub Desktop.
nodes = [i for i in xrange(15)]
all_but_last = "btuts"
last = None
for i in reversed(nodes):
if last = None:
last = i
continue
create_edge(last, i)
last = i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment