pathpyG
pathpyG copied to clipboard
GPU-accelerated Next-Generation Network Analytics and Graph Learning for Time Series Data on Complex Networks.
The higher-order networks were unweighted. This snippet: ``` dag_data = pp.DAGData(pp.IndexMap(list("01234"))) dag_data.append_walk(list("023"), weight=20) dag_data.append_walk(list("124"), weight=30) m = pp.MultiOrderModel.from_DAGs(dag_data, max_order=2) hon_1 = m.layers[1] hon_2 = m.layers[2] print(hon_1.data.edge_weight) print(hon_2.data.edge_weight) ``` Gives this:...
As I understand both methods, `get_snapshot` should return a `TemporalGraph` that contains all edges from the original graph that occur in the time window from `start` to `end`. This means...
@VincenzoPerri raised the issue that we currently cannot add a DAG that should contain the same node at multiple time stamps. We already fixed this issue for `append_walk` by reindexing...
Due to the new internal representation of `node_ids` in `IndexMap` as `numpy.array`, there are sometimes some unintended conversions from integers to booleans happening. I also noticed that the ordering of...
The methods - `lift_order_edge_index` - `lift_order_edge_index_weighted` - `aggregate_edge_index` potentially have uses outside of `MultiOrderModel`, e.g. for the centrality calculations. Since they are static methods anyway, it would make sense to...
Currently files containing a class are named in CamelCase. We should follow [PEP8 convention](https://peps.python.org/pep-0008/#package-and-module-names) and name them in lowercase because this can otherwise lead to confusion during imports. Example: You...
The method `IndexMap.to_idxs(...)` is meant as a shortcut if you want to convert an iterable of ids to the corresponding idx. In some cases one might want to input an...
As we now have almost all of the core functions implemented in `torch` operations that can utilize the GPU, we have fixed most runtime issues and now run into the...
In the previous versions, we saved the number of times each walk or DAG appeared as a count/weight. This would translate to a graph feature for each PyG `Data` object....
With the recent merges #110 and #109, we now provide links to check out our tutorials directly via Google Colab. But there are some errors on Colab due to the...