Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Conversation

@eddieschoute
Copy link
Contributor

The push_relabel function creates a dense zeros matrix. This is very inefficient for sparse graphs. In my benchmarks, the zeros call took 30 seconds, afterwards it doesn't even show up any more. The total runtime for maximum_flow also improves by a factor 10x.

@matbesancon matbesancon merged commit a72809e into JuliaGraphs:master Feb 9, 2021
@matbesancon
Copy link
Member

Makes sense yup, thanks for the PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants