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!
What's the problem this feature will solve?
When a
mockturtleview is desired for anaigversenetwork type, that view must be exposed as an additional network type. For instance,AigandSequentialAig. 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:Feel free to contribute if you have a good idea for implementing this API!