Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't deepcopy a maxflow graph #2

Open
davisv7 opened this issue Feb 12, 2021 · 0 comments
Open

Can't deepcopy a maxflow graph #2

davisv7 opened this issue Feb 12, 2021 · 0 comments

Comments

@davisv7
Copy link

davisv7 commented Feb 12, 2021

When I try to deepcopy a pymaxflow graph, I get this error:

    g = deepcopy(self.flow_graph)
  File "D:\Project\venv\lib\copy.py", line 169, in deepcopy
    rv = reductor(4)
  File "stringsource", line 2, in maxflow._maxflow.GraphInt.__reduce_cython__
TypeError: no default __reduce__ due to non-trivial __cinit__

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant