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

Implement Clone and Debug for MinCostFlowGraph and _Edge #152

Open
NotLeonian opened this issue Feb 26, 2025 · 1 comment
Open

Implement Clone and Debug for MinCostFlowGraph and _Edge #152

NotLeonian opened this issue Feb 26, 2025 · 1 comment

Comments

@NotLeonian
Copy link

Implement the Clone and Debug traits for MinCostFlowGraph.
This requires implementing Clone and Debug for _Edge as well.

To implement this change, we first need to choose between setting the trait bound for T as Clone, Debug or as Integral.
I think the former seems better.

For the Clone trait, it should be sufficient to specify the trait bound and write the impl.
For the Debug trait, discussion is needed regarding the output format.
I think using the debug_struct function for both MinCostFlowGraph and _Edge should be enough.

@NotLeonian
Copy link
Author

To maintain consistency with other files, if both this issue and #153 are implemented, I think that one of them should include the necessary use statement for std::fmt.

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