First time here? Check out the FAQ!

Ask Your Question
0

Matroids: computing rank of a set

asked 2 years ago

Hello,

I would like to compute the rank of a given subset of the ground set of a matroid. I've tried

from sage.matroids.advanced import setprint
M = matroids.named_matroids.Vamos();
M.rank_function(['a','b','c'])

but I get the error

AttributeError: 'sage.matroids.circuit_closures_matroid.CircuitClos' object has no attribute 'rank_function'

Is there a way to go around this? Also, since I am very new to Sage: is the matroid package included in Sage by default or do I need to somehow install it? If yes, then how?

Thanks in advance!

Preview: (hide)

Comments

The matroid code is included in sage by default.

FrédéricC gravatar imageFrédéricC ( 2 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

it's M.rank(['a','b','c'])

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2 years ago

Seen: 221 times

Last updated: Sep 02 '22