Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to find the tree having largest algebraic connectivity among a given class of trees

using the code, g for g in graphs.trees(10) we get the trees on 10 vertices. Now from this collection how we obtain only those trees having 5 pendant vertices and also find the tree(from those having 5 pendant vertices) having largest algebraic connectivity