Skip to content

✨ Generic views for AIGs (and other network types) #123

@marcelwa

Description

@marcelwa

What's the problem this feature will solve?

When a mockturtle view is desired for an aigverse network type, that view must be exposed as an additional network type. For instance, Aig and SequentialAig. This makes nesting views cumbersome in Python. Currently, there is no way to have depth (DepthAig) and sequential information (SequentialAig) in a single network in Python. This problem only intensifies once more network types are exposed. See #122.

Describe the solution you'd like

I'm not yet sure how to best address this issue. Any suggestions are welcome. I want to prevent a situation where we have all combinations of views exposed as individual network types, e.g., SequentialDepthAig. Instead, a better API might offer something like this:

aig = Aig(views=["depth", "sequential"])

Feel free to contribute if you have a good idea for implementing this API!

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonRelating the Python part of the projectenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions