Menu

#854 getEdgesEqualTo and getNodesEqualTo

3.5.x
closed-fixed
None
5
2017-04-05
2017-04-01
No

THis is more a feature request than a bug report. When scripting with python, I often need to seach for nodes and/or edges having a given value with respect to a given property. I even ended up writing myself a utility calss gathering a number of util functions like this one.

I recently realized that the Tulip API contains such functions:

getNodesEqualTo / getEdgesEqualTo

but only for Boolean properties ... :-( I wondered whether it would be a big deal to extend these methods to all property types. My guess is that the knowledge on the internal storage of data would allow these methods to be much more efficient than my code.

Discussion

  • Patrick Mary

    Patrick Mary - 2017-04-03
    • assigned_to: Patrick Mary
     
  • Patrick Mary

    Patrick Mary - 2017-04-03

    Thank you very much for your suggestion.
    Sounds good for me.
    I will try to add the two mentioned functions for all kind of property in the next release.

     
  • Patrick Mary

    Patrick Mary - 2017-04-05
    • status: open --> closed-fixed
     
  • Patrick Mary

    Patrick Mary - 2017-04-05

    As suggested,
    the methods getNodesEqualTo / getEdgesEqualTo have been added for all types
    of property and are also available in the python binding (commit #12193).

     

Log in to post a comment.