create some class about graph