Hi Bruce,

> I would like to take a class, say for example Graph, and work with
> formal R-linear combinations of Graphs.
> The FormalSum only applies to numbers and the examples for
> CombinatorialFreeModule only have finite sets.

This is not True:

sage: CombinatorialFreeModule(QQ, NonNegativeIntegers())
Free module generated by Non negative integers over Rational Field
sage: bla = CombinatorialFreeModule(QQ, NonNegativeIntegers())
sage: bla.basis()[1]
B[1]
sage: bla.basis()[1]+ 4*bla.basis()[123]
B[1] + 4*B[123]

> Can I do this? (Nicolas has said I can with CombinatorialFreeModule).

Florent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to