-
-
Notifications
You must be signed in to change notification settings - Fork 423
Direct betweenness #2352
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
base: master
Are you sure you want to change the base?
Direct betweenness #2352
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2352 +/- ##
=======================================
Coverage 83.46% 83.46%
=======================================
Files 376 376
Lines 61576 61576
=======================================
+ Hits 51394 51397 +3
+ Misses 10182 10179 -3
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
If I have an undirected line:
and I do a subset betweenness between source 0, and target 2:
Then for vertex 1 I should get a betweenness of 1, right? Not 0.5. The original implementation just divides the end result by 2 for undirected situations, but I think that's incorrect. That only works if your targets and sources are the same. If there's no overlap then there is no division needed at all, and if there is a little overlap, you can't use a basic division at the end to fix everything. |
Let's skip this until the necessary functions are implemented. #2358 |
Correct.
I believe you are right. I'd have to look into this in more detail to see how the subset version works and how it can be fixed most effectively. But we are making progress, we discovered a bug, so that's good. This was precisely the purpose of the direct implementation. |
Opened a new issue for this: |
Yes, you are correct. This seems to be a bug indeed. Great job! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Fixes #1796
Making cutoffs work seems like a lot of work, because the only shortest path functions with cutoffs are
igraph_distances_cutoff
,igraph_distances_dijkstra_cutoff
, which don't actually give me the paths.subset betweenness should be doable.
Edit:
subset betweenness is way harder than I thought.
the FINALLY stack is a mess, that still needs to be fixed.