quick and dirty graph stuff