implemented all graph types - distance/duration