Skip to content

Commit d5088dd

Browse files
committed
Update arXiv link; warn node2vec+ usage for unweighted graphs
1 parent 23da1d1 commit d5088dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Learning low-dimensional representations (embeddings) of nodes in large graphs i
77

88
The details of implementation and the optimizations, along with benchmarks, are described in the application note [_PecanPy: a fast, efficient and parallelized Python implementation of node2vec_](https://doi.org/10.1093/bioinformatics/btab202), which is published in _Bioinformatics_. The benchmarking results presented in the preprint can be reproduced using the test scripts provided in the companion [benchmarks repo](https://github.com/krishnanlab/PecanPy_benchmarks).
99

10-
**v2 update**: PecanPy is now equipped with _node2vec+_, which is a natural extension of _node2vec_, and handles weighted graph more effectively. For more information, see [*Accurately Modeling Biased Random Walks on Weighted Wraphs Using Node2vec+*](). The datasets and test scripts for reproducing the presented results are available in the [node2vec+ benchmarks repo](https://github.com/krishnanlab/node2vecplus_benchmarks).
10+
**v2 update**: PecanPy is now equipped with _node2vec+_, which is a natural extension of _node2vec_, and handles weighted graph more effectively. For more information, see [*Accurately Modeling Biased Random Walks on Weighted Wraphs Using Node2vec+*](https://arxiv.org/abs/2109.08031). The datasets and test scripts for reproducing the presented results are available in the [node2vec+ benchmarks repo](https://github.com/krishnanlab/node2vecplus_benchmarks).
1111

1212
## Installation
1313

@@ -122,7 +122,7 @@ If you use this work, please cite:
122122
Liu R, Krishnan A (2021) **PecanPy: a fast, efficient, and parallelized Python implementation of node2vec.** _Bioinformatics_ https://doi.org/10.1093/bioinformatics/btab202
123123

124124
If you find _node2vec+_ useful, please cite:
125-
Liu R, Hirn M, Krishnan A (2021) **Accurately Modeling Biased Random Walks on Weighted Wraphs Using Node2vec+.** _axXiv_ (TBA)
125+
Liu R, Hirn M, Krishnan A (2021) **Accurately Modeling Biased Random Walks on Weighted Wraphs Using Node2vec+.** _axXiv_ https://arxiv.org/abs/2109.08031
126126

127127
### Authors
128128
Renming Liu, Arjun Krishnan*

src/pecanpy/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def read_graph(args):
179179
raise ValueError(f"Unkown mode: {repr(mode)}")
180180

181181
check_mode(g, mode)
182+
if extend and not weighted:
183+
print("WARNING: node2vec+ is equivalent to node2vec for unweighted graphs.")
182184

183185
return g
184186

0 commit comments

Comments
 (0)