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

Add multi-order matrix powers #9

Open
IngoScholtes opened this issue Sep 14, 2018 · 0 comments
Open

Add multi-order matrix powers #9

IngoScholtes opened this issue Sep 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@IngoScholtes
Copy link
Contributor

From pathpy created by IngoScholtes : sg-dev/pathpy#49

A multi-order matrix powers function would be very handy. The basic idea is to generalize the concept of adjacency matrix powers to a multi-order model.

For a first-order network with adjacency matrix $A$, the $k$-th power gives the number of different paths between all pairs of nodes. In a multi-order network with max. order $K$ and adjacency matrices $A_i$ we can generalize the matrix power to:
$A_1 \cdot A_2 \cdot ... \cdot ... A_K^{k-K}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant