Skip to content

Instantly share code, notes, and snippets.

@Shadid12
Created March 19, 2018 23:19
Show Gist options
  • Save Shadid12/28b0339878d35e1b976d682c2969233d to your computer and use it in GitHub Desktop.
Save Shadid12/28b0339878d35e1b976d682c2969233d to your computer and use it in GitHub Desktop.
from routes import Routes
# Graph: AB5, BC4, CD8, DC8, DE6, AD5, CE2, EB3, AE7
graph = {
'A': {'B': 5, 'D': 5, 'E': 7 },
'B': {'C': 4},
'C': {'D': 8, 'E': 2},
'D': {'C': 8, 'E': 6},
'E': {'B': 3}
}
r = Routes(graph)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment