Skip to content

CombinatorialPolyhedron: ridge_graph -> facet_graph #28604

@kliem

Description

@kliem

In order to make CombinatorialPolyhedron more consistent with Polyhedron, we replace ridge_graph by facet_graph.

In case of of the half space this makes a difference, as there is a facet, but no ridges.

For now we keep ridge_graph and add a deprecation warning.

While we are at it, we fix some bugs:

  • CombinatorialPolyhedron.ridges(names=False, add_equalities=True) ignores add_equalities=True now.

    Equalities do not carry indices and can only be added with names=True.

  • facet_graph is now aware of the following:
    a ridge in ridges is a tuple of indices with names=False and a tuple of tuples with names=True and add_equalities=True,

    e.g. (1,2) vs. (('my_vertex_1',), ('my_vertex_2',)).

  • ridges now appends equations at the end. This is consistent with FaceIterator.Hrepresentation.

Depends on #28603

CC: @jplab @LaisRast

Component: geometry

Keywords: polytopes, combinatorial polyhedron

Author: Jonathan Kliem

Branch/Commit: 9d93a14

Reviewer: Laith Rastanawi

Issue created by migration from https://trac.sagemath.org/ticket/28604

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions