add method to retrieve source and target edge list from Graph object