Added fetchFirstExamples and fetchLastExamples to collection
BUG FIX: createGraph did not return the a graph of the right class but always a Graph.