Macaulay2 » Documentation
Packages » Graphs :: leaves
next | previous | forward | backward | up | index | toc

leaves -- lists the leaves of a tree graph

Synopsis

Description

A vertex of a tree graph is a leaf if the degree of the vertex is 1

i1 : G = graph({{1,2},{1,3},{3,4},{3,5}},EntryMode=>"edges");
i2 : leaves G;

See also

Ways to use leaves :

For the programmer

The object leaves is a method function.