cleanup + setProperties() working on node and edges