moved graph definitions to separate file