Skip to content

Commit 6e94c00

Browse files
author
Anton Leykin
committed
Cayley-Menger docs
1 parent 9b03e02 commit 6e94c00

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Rigidity/CayleyMenger-docs.m2

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
doc ///
2+
Node
3+
Key
4+
getAllTrees
5+
(getAllTrees,ZZ)
6+
(getAllTrees,List)
7+
Headline
8+
Get all Cayley-Menger trees on n vertices
9+
Usage
10+
L = getAllTrees n
11+
L = getAllTrees variableNames
12+
Inputs
13+
n : ZZ
14+
a positive integer
15+
variableNames : List
16+
the list of variables to use
17+
Outputs
18+
L :
19+
a list of polynomials, each representing a rooted tree leaves given by the argument list
20+
Description
21+
Text
22+
This function generates all rooted trees on n leaves,
23+
represented as polynomials in which each monomial corresponds
24+
to a clade (a subset of leaves descending from a common internal node).
25+
The leaves are labeled by variables x_1 to x_n (or the ones provided explicitly).
26+
Example
27+
getAllTrees 3
28+
QQ[a,b,c]
29+
getAllTrees {a,b,c}
30+
SeeAlso
31+
maximalTreePairs
32+
///

0 commit comments

Comments
 (0)