split graph-model into two files