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.

相关文章:

  • 2021-11-18
  • 2021-10-24
  • 2021-09-13
  • 2022-02-15
  • 2021-10-10
  • 2021-05-26
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2021-06-03
  • 2021-05-17
  • 2021-06-13
  • 2021-12-13
  • 2021-06-05
相关资源
相似解决方案