@@ -179,7 +179,7 @@ def Matroid(groundset=None, data=None, **kwds):
179179 matroid.
180180 - ``independent_sets`` -- The list of independent sets of the matroid.
181181 - ``circuits`` -- The list of circuits of the matroid.
182- - ``nonspanning_circuits`` -- The list of nonspanning_circuits of the
182+ - ``nonspanning_circuits`` -- The list of nonspanning circuits of the
183183 matroid.
184184 - ``flats`` -- The dictionary of flats indexed by their rank.
185185 - ``graph`` -- A graph, whose edges form the elements of the matroid.
@@ -226,6 +226,8 @@ def Matroid(groundset=None, data=None, **kwds):
226226
227227 The ``Matroid()`` method will return instances of type
228228 :class:`BasisMatroid <sage.matroids.basis_matroid.BasisMatroid>`,
229+ :class:`CircuitsMatroid <sage.matroids.circuits_matroid.CircuitsMatroid>`,
230+ :class:`FlatsMatroid <sage.matroids.flats_matroid.FlatsMatroid>`,
229231 :class:`CircuitClosuresMatroid <sage.matroids.circuit_closures_matroid.CircuitClosuresMatroid>`,
230232 :class:`LinearMatroid <sage.matroids.linear_matroid.LinearMatroid>`,
231233 :class:`BinaryMatroid <sage.matroids.linear_matroid.LinearMatroid>`,
@@ -307,7 +309,7 @@ def Matroid(groundset=None, data=None, **kwds):
307309 sage: M1 = Matroid(groundset='abc', circuits=['bc'])
308310
309311 A matroid specified by a list of circuits gets converted to a
310- :class:`CircuitsMatroid <sage.matroids.basis_matroid .CircuitsMatroid>`
312+ :class:`CircuitsMatroid <sage.matroids.circuits_matroid .CircuitsMatroid>`
311313 internally::
312314
313315 sage: from sage.matroids.circuits_matroid import CircuitsMatroid
@@ -331,6 +333,16 @@ def Matroid(groundset=None, data=None, **kwds):
331333 sage: M.is_valid()
332334 False
333335
336+ #. Dictionary of flats:
337+
338+ ::
339+
340+ sage: M = Matroid(flats={0: [''], 1: ['a', 'b'], 2: ['ab']})
341+ sage: M.is_valid()
342+ True
343+ sage: type(M)
344+ <class 'sage.matroids.flats_matroid.FlatsMatroid'>
345+
334346 #. Graph:
335347
336348 Sage has great support for graphs, see :mod:`sage.graphs.graph`.
0 commit comments