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


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.