Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodes = ["uno","dos","tres","cuatro","cinco","seis"]
- edges = [("uno", "dos"),
- ("uno", "tres"),
- ("dos", "tres"),
- ("dos", "cuatro"),
- ("tres", "cuatro"),
- ("tres", "cinco"),
- ("cuatro", "cinco"),
- ("cuatro", "seis"),
- ("cinco", "seis")]
- inverses =[(j,i) for (i,j) in edges]
- arcs = edges + inverses
- ArcsOut[i in nodes] = [(i,j) for (i,j) in arcs for i in stations for j in stations].
Add Comment
Please, Sign In to add comment