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

Does bct.efficiency_wei also work for directed networks? #111

Open
JohannesWiesner opened this issue Oct 21, 2022 · 1 comment
Open

Does bct.efficiency_wei also work for directed networks? #111

JohannesWiesner opened this issue Oct 21, 2022 · 1 comment

Comments

@JohannesWiesner
Copy link

JohannesWiesner commented Oct 21, 2022

I would like to compute the global efficiency for a set of directed matrices. Looking at the appendix of this this paper, it seems that bct.efficiency_wei is agnostic to direction (aka. can be used for both directed and undirected networks?). If so, I guess the documentation should be changed to undirected/directed weighted connection matrix?:

W : NxN np.ndarray
undirected weighted connection matrix
(all weights in W must be between 0 and 1)

@aestrivex
Copy link
Owner

aestrivex commented Dec 5, 2022

I never thought of doing it for directed networks. It appears to me that the algorithm could accommodate directed matrices. However, that algorithm is a bit more complicated than the one currently written, it would have to compute distances between pairs of vertices directionally. A bit of work will be needed to make it do that.

Pull requests are always welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants