add graph model
Merge pull request #6 from pondering/master

add graph model