Edge selection events are still processed
This is caught by checking if the selected name is in the node list, but could cause troubles if edges would happen to have the same name as a node.
Also it's a waste of checks if for a node selection also all its edges are iterated.