# Is there a upper bound on the length of the shortest paths by degree of vertices?

I would like to know if there is an upper bound on the length of the shortest paths between vertices on an undirected and unweighted graph based on degree of vertices, number of vertices and number of edges. I consider the shortest paths. So path length is smaller than the number of vertices. I want to know if I can get a better bound with the information of degrees of vertices.

Specifically I have a graph where degree of each vertex is either 1, 2 or 3.

• Paths and cycles have low degrees, so I don't think you can get a meaningful bound. – Yuval Filmus Mar 1 '16 at 6:26
• I edited the question. I want to consider only the shortest paths between vertices. – Ibraheem Moosa Mar 1 '16 at 6:37
• Same example still works. – Yuval Filmus Mar 1 '16 at 6:39
• What do you mean by degrees of paths and cycles? – Ibraheem Moosa Mar 1 '16 at 6:49
• I mean that vertices in paths and cycles have very low degrees (1 and 2), as well as only few edges, and yet their diameter is large. – Yuval Filmus Mar 1 '16 at 7:37
{"ft_lang_label":"__label__en","ft_lang_prob":0.9584253,"math_prob":0.83143073,"size":458,"snap":"2020-24-2020-29","text_gpt3_token_len":100,"char_repetition_ratio":0.15418503,"word_repetition_ratio":0.0,"special_character_ratio":0.20960699,"punctuation_ratio":0.07446808,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97631186,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-28T00:13:22Z\",\"WARC-Record-ID\":\"<urn:uuid:865e2c9b-ce9f-40ae-808b-8768b6dc67d0>\",\"Content-Length\":\"137899\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5294ae9c-e418-4913-a4ba-473345ad7c41>\",\"WARC-Concurrent-To\":\"<urn:uuid:71438db8-4e94-452e-b5f9-454f742c489f>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://cs.stackexchange.com/questions/53839/is-there-a-upper-bound-on-the-length-of-the-shortest-paths-by-degree-of-vertices\",\"WARC-Payload-Digest\":\"sha1:GPKS2XL2VX2RP6INZUBF3H5TSS6XCIRM\",\"WARC-Block-Digest\":\"sha1:ZQDCPKOQJAREHTBVH767VAFQCWOH5BUT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347396300.22_warc_CC-MAIN-20200527235451-20200528025451-00237.warc.gz\"}"}