Graph class is now abstract -> it is possible to create own
representation of graph and use it in generator
Several changes