Skip to content

Commit b0dcb06

Browse files
round ubodt dist (#19)
* dist * update version * drop failed test --------- Co-authored-by: TANG ZHIXIONG <[email protected]>
1 parent 9d35377 commit b0dcb06

File tree

5 files changed

+9
-65
lines changed

5 files changed

+9
-65
lines changed

.github/workflows/enscripten.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
# built documents.
5959
#
6060
# The short X.Y version.
61-
version = '0.1.5'
61+
version = '0.1.6'
6262
# The full version, including alpha/beta/rc tags.
63-
release = '0.1.5'
63+
release = '0.1.6'
6464

6565
# The language for content autogenerated by Sphinx. Refer to documentation
6666
# for a list of supported languages.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build"
55

66
[project]
77
name = "networkx_graph"
8-
version = "0.1.5"
8+
version = "0.1.6"
99
url = "https://github.com/cubao/networkx-graph"
1010
description = "Some customized graph algorithms"
1111
readme = "README.md"

src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,11 @@ struct DiGraph
897897
while ((u = pmap[succ]) != source) {
898898
succ = u;
899899
}
900-
records.push_back({source, curr, succ, prev, dmap[curr]});
900+
double dist = dmap[curr];
901+
if (round_scale_) {
902+
dist = ROUND(dist, *round_scale_);
903+
}
904+
records.push_back({source, curr, succ, prev, dist});
901905
}
902906
return records;
903907
}

tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def test_version():
19-
assert m.__version__ == "0.1.5"
19+
assert m.__version__ == "0.1.6"
2020

2121

2222
def test_add():

0 commit comments

Comments
 (0)