This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 183
New s_metric method #1548
Open
vboussange
wants to merge
12
commits into
sbromberger:master
Choose a base branch
from
vboussange:s_metric
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
New s_metric method #1548
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #1548 +/- ##
==========================================
+ Coverage 99.37% 99.44% +0.06%
==========================================
Files 108 107 -1
Lines 5157 5559 +402
==========================================
+ Hits 5125 5528 +403
+ Misses 32 31 -1 |
This reverts commit b3c0076.
* rich_club: added rich club metric
* master: Revert "added rich club metric" added rich club metric
I have been messing up with the branches in my pull requests, trying to solve this now
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there, I propose to add a new metric, so called s-metric.
This is also done in networkX.
s_metric(g; norm=true)
Return the normalised s-metric of
g
.The s-metric is defined as the sum of the product of degrees between pair of nodes
for every edge in
g
. RefIt is normalised by the maximum s_metric obtained from the family of graph
with similar degree distribution.
s_max is computed from an approximation formula as in https://journals.aps.org/pre/pdf/10.1103/PhysRevE.75.046102
If
norm=false
, no normalisation is performed.Examples