We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Flow is not added to an edge if placed on a parallel edge with a short_channel_id that is not yet in the MultiGraph.
if G.has_edge(src, dest): if channel.short_channel_id in G[src][dest]: G[src][dest][channel.short_channel_id]["flow"] += flow else: G.add_edge(src, dest, key=channel.short_channel_id, flow=flow, channel=channel, weight=channel.combined_linearized_unit_cost())
should be
if G.has_edge(src, dest) and (channel.short_channel_id in G[src][dest]): G[src][dest][channel.short_channel_id]["flow"] += flow else: G.add_edge(src, dest, key=channel.short_channel_id, flow=flow, channel=channel, weight=channel.combined_linearized_unit_cost())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Flow is not added to an edge if placed on a parallel edge with a short_channel_id that is not yet in the MultiGraph.
should be
The text was updated successfully, but these errors were encountered: