clear_selection function

Clear an active selection of nodes or edges