basic structure for creating graph