added special case for Graph.select