Exemplo n.º 1
0
    def circuits(self):
        """
        Return the circuits.

        Given a vector oriented matroid, the set of circuits is the set
        `Min(V)` which denotes the set of inclusion-minimal (nonempty) signed
        subsets.
        """
        from sage.combinat.posets.posets import Poset
        from oriented_matroids import OrientedMatroid
        # remove 0
        vecs = [v for v in self.vectors() if not v.is_zero()]
        P = Poset([vecs, lambda x, y: x.is_restriction_of(y)])
        return P.minimal_elements()