Skip to content

Make RecursivelyEnumeratedSet_forest a subclass of RecursivelyEnumeratedSet_generic #30238

Open
@seblabbe

Description

@seblabbe

As a follow up of #16351, we integrate the class RecursivelyEnumeratedSet_forest as a subclass of RecursivelyEnumeratedSet_generic implementing the following change:

-class RecursivelyEnumeratedSet_forest(Parent):
+class RecursivelyEnumeratedSet_forest(RecursivelyEnumeratedSet_generic):

and consequential changes.

I was hoping this to be enough to activate few methods like to_digraph from the generic class that I like to use but are currently not available for the forest type. But unfortunately, the implementation of breadth first search for forest type does not yet take into account the max_depth argument. That will be dealt in another ticket.

CC: @tscrim

Component: combinatorics

Author: Sébastien Labbé

Branch/Commit: u/slabbe/30238 @ 7b65a95

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions