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

rpcserver: correct avg degree in GetNetworkInfo #2832

Merged
merged 1 commit into from Mar 28, 2019

Conversation

Projects
None yet
4 participants
@caldon
Copy link
Contributor

caldon commented Mar 24, 2019

AFAIK average degree of graph is calculated as twice the number of edges divided by number of vertices. Also now the value makes more sense, because now it means average number of channels connected to single node.

rpcserver: correct avg degree in GetNetworkInfo
Average degree of graph is calculated as twice the number of edges devided by number of vertices
@cfromknecht
Copy link
Collaborator

cfromknecht left a comment

LGTM! 🔥

@halseth
Copy link
Collaborator

halseth left a comment

I concur 😛

@Roasbeef Roasbeef merged commit fff003f into lightningnetwork:master Mar 28, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.005%) to 59.823%
Details

@caldon caldon deleted the caldon:avg-out-degree-fix branch Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.