make graph dimensions available in main