Create graph.pl

Implementation of graphs