getGraph() method is working

Added comments, added getGraph() method, finished the creation of
triplets