Move graph-related stuff together and clean include.
Add an install target