daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jun 20th, 2018 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nodes = ["uno","dos","tres","cuatro","cinco","seis"]
  2.    
  3. edges = [("uno", "dos"),
  4.          ("uno", "tres"),
  5.          ("dos", "tres"),
  6.          ("dos", "cuatro"),
  7.          ("tres", "cuatro"),
  8.          ("tres", "cinco"),
  9.          ("cuatro", "cinco"),
  10.          ("cuatro", "seis"),
  11.          ("cinco", "seis")]
  12.    
  13. inverses =[(j,i) for (i,j) in edges]
  14.    
  15. arcs = edges + inverses
  16.    
  17. ArcsOut[i in nodes] = [(i,j) for (i,j) in arcs for i in stations for j in stations].
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top