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

Calculate Path Length #97

Closed
mitemijalkov opened this issue Feb 21, 2020 · 1 comment · Fixed by #103
Closed

Calculate Path Length #97

mitemijalkov opened this issue Feb 21, 2020 · 1 comment · Fixed by #103
Assignees
Labels
measure Graph measures test Unit tests

Comments

@mitemijalkov
Copy link
Collaborator

Using the distance function, calculate path length of each node.

Path length can be calculated for BU and WU graph. For BD and WD graphs, calculate In and Out - path length for all nodes.

For binary graphs, path length is based on the number of edges needing to reach one node starting from the other. For weighted graphs, the calculation is based on the weights of the edges (Dijkstra's algorithm). Since we have distance based on the number of edges, maybe this variant can be implemented for weighted graphs also.

@mitemijalkov mitemijalkov added measure Graph measures test Unit tests labels Feb 21, 2020
@egolol egolol linked a pull request Feb 22, 2020 that will close this issue
@egolol
Copy link
Collaborator

egolol commented Feb 25, 2020

Talking with Giovanni, we are going to change the settings rule to choose the mean to this class.
I have been testing and "length(nonzeros(Du~=Inf)); " does not give the desired number. That was how old Braph calculated it. new way is "length(Du(Du~=Inf & Du~=0));"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
measure Graph measures test Unit tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants