Posted By

laurenceosx on 07/19/09


Tagged

guess jython


Versions (?)

guess - create edges from source node to target nodes that were shift clicked


 / Published in: Python
 

  1. # identify source node
  2. source = v1
  3.  
  4. # do a multiple (shift) on other nodes
  5. targets = [n.getOwner() for n in v.selected]
  6.  
  7. # create the edges
  8. for target in targets: addEdge( source, target )

Report this snippet  

You need to login to post a comment.