graph creation from raw data