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.
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.
As suggested,
the methods getNodesEqualTo / getEdgesEqualTo have been added for all types
of property and are also available in the python binding (commit #12193).