码迷,mamicode.com
首页 > 其他好文 > 详细

caterpillar tree

时间:2020-05-15 18:05:19      阅读:77      评论:0      收藏:0      [点我收藏+]

标签:which   path   gre   cat   original   com   and   move   nal   

In graph theory, a caterpillar or caterpillar tree is a tree in which all the vertices are within distance 1 of a central path.

The central path can be viewed as the caterpillar‘s "body" and the other vertices can be viewed as its "feet".

A tree is a caterpillar if and only if it becomes a path when all of its leaves are removed. Here a leaf means a vertex of degree one in the original tree.

It can be proved that a diameter of a caterpillar is always its body.

caterpillar tree

标签:which   path   gre   cat   original   com   and   move   nal   

原文地址:https://www.cnblogs.com/Patt/p/12896056.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!