get_selection function

Get the current selection available in a graph object