working colors with directive, empty directive for edges
fix for removing nodes