Add graph

Add functional to create and work with graphs