Consider adding convenience "overloads" to the binding properties
yGuy opened this issue · 0 comments
yGuy commented
Right now we have to write:
w.edge_label_mapping = lambda index,edge : edge.get('properties',{}).get('variable','no value')
It would be awesome if we could automatically accept functions that only accept one argument (only the item? only the index?) and if there was a way to simply specify the name of the property as a string to use for binding:
w.edge_label_mapping = 'variableName'
// would be effectively the same as
w.edge_label_mapping = lambda index,edge : edge.get('properties',{}).get('variableName','no value')