Macaulay2 » Documentation
Packages » SimplicialPosets :: fromFVector
next | previous | forward | backward | up | index | toc

fromFVector -- If possible, returns a simplicial poset with the given f-vector.

Synopsis

Description

This method is provided as a way to construct an example of a simplicial poset with a given f-vector.

It implements a construction due to Richard Stanley.

For details about this construction and a description of what f-vectors can be constructed, see Stanley's original paper.

i1 : P = fromFVector({1,6,5,1});
i2 : isSimplicial(P)

o2 = true
i3 : getFVector(P)

o3 = {1, 6, 5, 1}

o3 : List

Ways to use fromFVector :

For the programmer

The object fromFVector is a method function.