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

Fix: build_c_astar and nx.to_numpy_matrix() #98

Merged
merged 72 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
5d82d97
change python tests/test_a_star/prepare_for_test.py to python pygmtoo…
heatingma Aug 1, 2023
4c05275
add bdist_wheel
heatingma Aug 1, 2023
4155230
delete test/test_a_star
heatingma Aug 1, 2023
b083a7b
add astar ori_files
heatingma Aug 1, 2023
678a49e
Create publish_req.txt
heatingma Aug 1, 2023
6cf8381
Delete a_star.tar.gz
heatingma Aug 1, 2023
3678388
version is a23
heatingma Aug 1, 2023
ef3f41c
Update setup.py
heatingma Aug 1, 2023
439c757
delete some notes
heatingma Aug 1, 2023
6e0ea0e
add alternate url to fix download problem
heatingma Aug 2, 2023
18d3873
add return
heatingma Aug 3, 2023
be38bf0
fix the md5 problem with genn_astar pretrained models
heatingma Aug 3, 2023
d07498e
add the missed ','
heatingma Aug 3, 2023
b5f3133
fix the "diff=200.0" problem
heatingma Aug 3, 2023
57230e8
swap the url and the url_alter
heatingma Aug 3, 2023
55379dc
change the astar_pretrain_path
heatingma Aug 3, 2023
bde8106
Revert "swap the url and the url_alter"
heatingma Aug 4, 2023
220f782
Revert "change the astar_pretrain_path"
heatingma Aug 4, 2023
3143592
change the pretrained path
heatingma Aug 4, 2023
61181f8
only small files has url_alter
heatingma Aug 4, 2023
0642a14
add new url for pretrained modles
heatingma Aug 4, 2023
0eec2ee
add new download pretrained models' paths for jittor backend
heatingma Aug 4, 2023
52143ae
add new download pretrained models' paths for jittor backend
heatingma Aug 4, 2023
329a115
add new download pretrained models' paths for jittor backend
heatingma Aug 4, 2023
f3a78c0
add new download path for pytorch backend pretrained models
heatingma Aug 4, 2023
d8f821b
add new download path for paddle backend
heatingma Aug 4, 2023
c368697
delete some unused url
heatingma Aug 5, 2023
0ae85c7
add new alternate download path for cie and pca
heatingma Aug 5, 2023
35a4e02
don't test neural_solvers now
heatingma Aug 5, 2023
6f42e7c
only test neural_solvers
heatingma Aug 5, 2023
62f2bef
only test neural_solvers
heatingma Aug 5, 2023
9c76481
only test neural_solvers
heatingma Aug 5, 2023
a591e7e
only test neural
heatingma Aug 5, 2023
ceeaf60
add the forget ","
heatingma Aug 5, 2023
18c98a9
add all tests
heatingma Aug 5, 2023
f408a51
add new url_path and change the download func
heatingma Aug 6, 2023
7e4a9de
delete dropout, trust_fact and no_pred_size for astar
heatingma Aug 7, 2023
6e6f773
delete dropout for genn_astar
heatingma Aug 7, 2023
a3ef42e
delete some parameters for astar and genn_astar
heatingma Aug 7, 2023
86ab428
Merge branch 'Thinklab-SJTU:main' into main
heatingma Aug 7, 2023
ba4d408
python
heatingma Aug 8, 2023
6df2f3f
Merge branch 'Thinklab-SJTU:main' into main
heatingma Aug 8, 2023
66a4b05
Merge branch 'Thinklab-SJTU:main' into main
heatingma Aug 22, 2023
37f88af
Merge branch 'Thinklab-SJTU:main' into main
heatingma Sep 4, 2023
8616fb4
change a_star to astar
heatingma Sep 12, 2023
de06854
change the function name "astar" from cython to "c_astar"
heatingma Oct 5, 2023
b0c8c0d
fix: 'module' object is not callable
heatingma Oct 5, 2023
57b0c26
change astar to c_astar
heatingma Oct 5, 2023
3a1373a
Merge branch 'Thinklab-SJTU:main' into main
heatingma Oct 11, 2023
086e182
Merge branch 'Thinklab-SJTU:main' into main
heatingma Nov 7, 2023
ed731b3
Merge branch 'Thinklab-SJTU:main' into main
heatingma Dec 1, 2023
e6237d9
Fix: for the same k, node_cost is double counted
heatingma Dec 1, 2023
cfe5b5d
Merge branch 'main' of https://github.com/heatingma/pygmtools
heatingma Dec 1, 2023
8bb5841
Add alter urls for datasets
heatingma Dec 2, 2023
1b44be0
fix: No such file or directory: 'data/SPair-71k/Layout/small/trn.txt'
heatingma Dec 2, 2023
b69de38
Merge branch 'Thinklab-SJTU:main' into main
heatingma Dec 7, 2023
a07035f
Merge branch 'Thinklab-SJTU:main' into main
heatingma Dec 12, 2023
fd122a0
support pyg
heatingma Dec 27, 2023
e743cbb
fix "Support for PyG"
heatingma Dec 27, 2023
0f959f5
Merge branch 'Thinklab-SJTU:main' into main
heatingma Dec 28, 2023
65b3614
fix astar bugs
heatingma Dec 30, 2023
2404be0
Merge branch 'main' of https://github.com/heatingma/pygmtools
heatingma Dec 30, 2023
26c834f
Merge branch 'Thinklab-SJTU:main' into main
heatingma Jan 1, 2024
e0ab7c4
Update test_dataset.py
heatingma Jan 21, 2024
4c1b2e6
Merge branch 'main' of https://github.com/heatingma/pygmtools
heatingma Jan 21, 2024
78b9406
Update dataset.py
heatingma Jan 21, 2024
a5353a7
Update dataset.py
heatingma Jan 21, 2024
a4a60d6
Update test_dataset.py
heatingma Jan 21, 2024
b6a17f3
Merge branch 'Thinklab-SJTU:main' into main
heatingma Jan 22, 2024
674add3
Merge branch 'Thinklab-SJTU:main' into main
heatingma Feb 1, 2024
71998d6
Merge branch 'Thinklab-SJTU:main' into main
heatingma Mar 30, 2024
94081ba
Fix: build_c_astar and nx.to_numpy_matrix
heatingma Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygmtools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ def from_networkx(G: nx.Graph):

"""
is_directed = isinstance(G, nx.DiGraph)
adj_matrix = nx.to_numpy_matrix(G, nodelist=G.nodes()) if is_directed else nx.to_numpy_matrix(G)
adj_matrix = nx.to_numpy_array(G, nodelist=G.nodes()) if is_directed else nx.to_numpy_array(G)
return adj_matrix


Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_property(prop, project):
VERSION = get_property('__version__', NAME)
REQUIRED = [
'requests>=2.25.1', 'scipy>=1.4.1', 'Pillow>=7.2.0', 'numpy>=1.18.5', 'easydict>=1.7', 'appdirs>=1.4.4', 'tqdm>=4.64.1',
'async-timeout','aiohttp','networkx>=2.8.8'
'async-timeout', 'aiohttp', 'networkx>=2.8.8'
]
EXTRAS = {}

Expand All @@ -52,7 +52,7 @@ def get_property(prop, project):

class BdistWheelCommand(_bdist_wheel):
def run(self):
os.system("python pygmtools/c_astar/get_c_astar.py")
os.system("python pygmtools/c_astar_src/build_c_astar.py")
super().run()

def get_tag(self):
Expand All @@ -74,7 +74,7 @@ def get_tag(self):
class InstallCommand(_install):
def run(self):
try:
os.system("python pygmtools/c_astar/get_c_astar.py")
os.system("python pygmtools/c_astar_src/build_c_astar.py")
except:
pass
_install.run(self)
Expand All @@ -89,7 +89,7 @@ def run(self):
author=AUTHOR,
url=URL,
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
package_data={NAME: ['*.pyd', '*.so', 'astar/*']},
package_data={NAME: ['*.pyd', '*.so', 'c_astar_src/*']},
install_requires=REQUIRED,
extras_require=EXTRAS,
include_package_data=True,
Expand Down
Loading