application: matroid

Matroids encode the concept of "(in)dependence" in an abstract way. You can define matroids via vector configurations or graphs, do basic conversions between different descriptions and perform basic operations such as deletions and contractions.


imports from: common
uses: graph, polytope, topaz, tropical

Objects

User Functions

  •  
  •  
    contraction (m, element) → Matroid

    The matroid obtained from a matroid m by contraction of element .

    Parameters
    Matroid m
    Int element
    index of element to be contracted
    Returns
    Matroid
  •  
  •  
    deletion (m, element) → Matroid

    The matroid obtained from a matroid m by deletion of element .

    Parameters
    Matroid m
    Int element
    index of element to be deleted
    Returns
    Matroid
  •  
    dual (m) → Matroid

    Produces the dual of a given matroid m.

    Parameters
    Matroid m
    Returns
    Matroid
  •  
  •  
    matroid_from_graph (g) → Matroid

    Creates a graphical matroid from a graph g.

    Parameters
    graph::Graph g
    Returns
    Matroid
  •  
    matroid_from_matroid_polytope (p) → Matroid

    Creates a matroid from the corresponding matroid polytope p.

    Parameters
    polytope::Polytope p
    Returns
    Matroid
  •  
    uniform_matroid (r, n) → Matroid

    Creates the uniform matroid of rank r with n elements.

    Parameters
    Int r
    Int n
    Returns
    Matroid