added some simple graph stuff