added support for generate different graphs