graphslim 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graphslim-1.0.2/MANIFEST.in +4 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/PKG-INFO +4 -6
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim.egg-info/PKG-INFO +4 -6
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim.egg-info/SOURCES.txt +0 -3
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim.egg-info/requires.txt +3 -5
- {graphslim-1.0.0 → graphslim-1.0.2}/setup.py +4 -7
- graphslim-1.0.0/MANIFEST.in +0 -2
- graphslim-1.0.0/graphslim/requirements.txt +0 -18
- graphslim-1.0.0/graphslim/requirements_torch1+.txt +0 -18
- graphslim-1.0.0/graphslim/train_all.py +0 -69
- {graphslim-1.0.0 → graphslim-1.0.2}/README.md +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/affinity_gs.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/algebraic_jc.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/averaging.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/clustering.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/clusteringagg.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/coarsening_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/heavy_edge.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/kron.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/variation_cliques.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/variation_edges.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/variation_neighborhoods.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/coarsening/vng.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/doscond.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/doscondx.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/gcond.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/gcond_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/gcondx.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/gcsntk.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/geom.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/msgc.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/sfgc.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/sgdd.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/condensation/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscond/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscond/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscond/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscond/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscond/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscondx/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscondx/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscondx/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscondx/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/doscondx/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcond/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcond/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcond/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcond/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcond/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcondx/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcondx/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcondx/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcondx/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcondx/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcsntk/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcsntk/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcsntk/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcsntk/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/gcsntk/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/geom/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/geom/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/geom/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/geom/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/geom/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/msgc/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/msgc/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/msgc/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/msgc/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/msgc/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sfgc/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sfgc/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sfgc/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sfgc/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sfgc/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sgdd/citeseer.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sgdd/cora.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sgdd/flickr.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sgdd/ogbn-arxiv.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs/sgdd/reddit.json +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/configs.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/dataset/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/dataset/attack.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/dataset/convertor.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/dataset/loader.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/dataset/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/evaluation/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/evaluation/eval_agent.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/evaluation/nas_eval.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/evaluation/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/evaluation/vis.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/appnp.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/cheby.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/gat.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/gcn.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/gntk.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/graphsage.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/ignr.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/krr.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/layers.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/parametrized_adj.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/prbcd.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/random_attack.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/reparam_module.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/sgc.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/sgformer.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/models/sntk.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/__init__.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/cent_degree.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/cent_pagerank.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/coreset_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/edge_sparsification_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_citeseer_0.1_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_citeseer_0.25_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_citeseer_0.5_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_citeseer_1.0_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.1_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.25_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.5_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_1.0_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_flickr_0.001_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_flickr_0.005_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_flickr_0.01_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.001_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.005_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.01_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_reddit_0.0005_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_reddit_0.001_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_reddit_0.002_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_reddit_0.005_kcenter_15.npy +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/g_spar.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/herding.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/herding_agg.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/kcenter.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/kcenter_agg.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/kcenter_sample.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/local_degree.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/model_based_coreset_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/model_free_coreset_base.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/random.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/random_edge.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/rank_degree.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/scan.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/spanning_forest.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/t_spanner.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim/utils.py +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim.egg-info/dependency_links.txt +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/graphslim.egg-info/top_level.txt +0 -0
- {graphslim-1.0.0 → graphslim-1.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: graphslim
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Slimming the graph data for graph learning
|
|
5
5
|
Author: Rockcor
|
|
6
6
|
Author-email: jshmhsb@gmail.com
|
|
@@ -15,19 +15,17 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries
|
|
16
16
|
Requires-Python: >=3.8
|
|
17
17
|
Requires-Dist: click>=8.1.0
|
|
18
|
-
Requires-Dist: deeprobust
|
|
19
|
-
Requires-Dist: gdown
|
|
18
|
+
Requires-Dist: deeprobust
|
|
19
|
+
Requires-Dist: gdown
|
|
20
20
|
Requires-Dist: matplotlib>=3.8.4
|
|
21
21
|
Requires-Dist: networkit>=11.0
|
|
22
22
|
Requires-Dist: networkx>=3.1
|
|
23
23
|
Requires-Dist: numpy>=2.0.0
|
|
24
24
|
Requires-Dist: ogb>=1.3.0
|
|
25
|
-
Requires-Dist: PyGSP
|
|
25
|
+
Requires-Dist: PyGSP>=0.5.1
|
|
26
26
|
Requires-Dist: scikit_learn>=1.4.0
|
|
27
27
|
Requires-Dist: scipy>=1.14.0
|
|
28
28
|
Requires-Dist: sortedcontainers>=2.4.0
|
|
29
29
|
Requires-Dist: torch>=2.0.0
|
|
30
30
|
Requires-Dist: torch_geometric>=2.4.0
|
|
31
|
-
Requires-Dist: torch_scatter==2.1.2
|
|
32
|
-
Requires-Dist: torch_sparse==0.6.18
|
|
33
31
|
Requires-Dist: tqdm>=4.0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: graphslim
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Slimming the graph data for graph learning
|
|
5
5
|
Author: Rockcor
|
|
6
6
|
Author-email: jshmhsb@gmail.com
|
|
@@ -15,19 +15,17 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries
|
|
16
16
|
Requires-Python: >=3.8
|
|
17
17
|
Requires-Dist: click>=8.1.0
|
|
18
|
-
Requires-Dist: deeprobust
|
|
19
|
-
Requires-Dist: gdown
|
|
18
|
+
Requires-Dist: deeprobust
|
|
19
|
+
Requires-Dist: gdown
|
|
20
20
|
Requires-Dist: matplotlib>=3.8.4
|
|
21
21
|
Requires-Dist: networkit>=11.0
|
|
22
22
|
Requires-Dist: networkx>=3.1
|
|
23
23
|
Requires-Dist: numpy>=2.0.0
|
|
24
24
|
Requires-Dist: ogb>=1.3.0
|
|
25
|
-
Requires-Dist: PyGSP
|
|
25
|
+
Requires-Dist: PyGSP>=0.5.1
|
|
26
26
|
Requires-Dist: scikit_learn>=1.4.0
|
|
27
27
|
Requires-Dist: scipy>=1.14.0
|
|
28
28
|
Requires-Dist: sortedcontainers>=2.4.0
|
|
29
29
|
Requires-Dist: torch>=2.0.0
|
|
30
30
|
Requires-Dist: torch_geometric>=2.4.0
|
|
31
|
-
Requires-Dist: torch_scatter==2.1.2
|
|
32
|
-
Requires-Dist: torch_sparse==0.6.18
|
|
33
31
|
Requires-Dist: tqdm>=4.0.0
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
click>=8.1.0
|
|
2
|
-
deeprobust
|
|
3
|
-
gdown
|
|
2
|
+
deeprobust
|
|
3
|
+
gdown
|
|
4
4
|
matplotlib>=3.8.4
|
|
5
5
|
networkit>=11.0
|
|
6
6
|
networkx>=3.1
|
|
7
7
|
numpy>=2.0.0
|
|
8
8
|
ogb>=1.3.0
|
|
9
|
-
PyGSP
|
|
9
|
+
PyGSP>=0.5.1
|
|
10
10
|
scikit_learn>=1.4.0
|
|
11
11
|
scipy>=1.14.0
|
|
12
12
|
sortedcontainers>=2.4.0
|
|
13
13
|
torch>=2.0.0
|
|
14
14
|
torch_geometric>=2.4.0
|
|
15
|
-
torch_scatter==2.1.2
|
|
16
|
-
torch_sparse==0.6.18
|
|
17
15
|
tqdm>=4.0.0
|
|
@@ -8,32 +8,29 @@ from setuptools import find_packages, setup
|
|
|
8
8
|
name = 'graphslim'
|
|
9
9
|
requires_list = [
|
|
10
10
|
'click >= 8.1.0',
|
|
11
|
-
'deeprobust
|
|
12
|
-
'gdown
|
|
11
|
+
'deeprobust',
|
|
12
|
+
'gdown',
|
|
13
13
|
'matplotlib >= 3.8.4',
|
|
14
14
|
'networkit >= 11.0',
|
|
15
15
|
'networkx >= 3.1',
|
|
16
16
|
'numpy >= 2.0.0',
|
|
17
17
|
'ogb >= 1.3.0',
|
|
18
|
-
'PyGSP
|
|
18
|
+
'PyGSP>= 0.5.1',
|
|
19
19
|
'scikit_learn >= 1.4.0',
|
|
20
20
|
'scipy >= 1.14.0',
|
|
21
21
|
'sortedcontainers >= 2.4.0',
|
|
22
22
|
'torch >= 2.0.0',
|
|
23
23
|
'torch_geometric >= 2.4.0',
|
|
24
|
-
'torch_scatter == 2.1.2',
|
|
25
|
-
'torch_sparse == 0.6.18',
|
|
26
24
|
'tqdm >= 4.0.0',
|
|
27
25
|
]
|
|
28
26
|
|
|
29
27
|
setup(
|
|
30
28
|
name=name, # 包名同工程名,这样导入包的时候更有对应性
|
|
31
|
-
version='1.0.
|
|
29
|
+
version='1.0.2',
|
|
32
30
|
author="Rockcor",
|
|
33
31
|
author_email='jshmhsb@gmail.com',
|
|
34
32
|
description="Slimming the graph data for graph learning",
|
|
35
33
|
packages=find_packages(),
|
|
36
|
-
package_data={"": ["*"]}, # 数据文件全部打包
|
|
37
34
|
python_requires='>=3.8',
|
|
38
35
|
include_package_data=True, # 自动包含受版本控制(svn/git)的数据文件
|
|
39
36
|
classifiers=[
|
graphslim-1.0.0/MANIFEST.in
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
click==8.1.7
|
|
2
|
-
deeprobust==0.2.10
|
|
3
|
-
gdown==5.2.0
|
|
4
|
-
matplotlib==3.8.4
|
|
5
|
-
networkit==11.0
|
|
6
|
-
networkx==3.1
|
|
7
|
-
numpy==2.0.1
|
|
8
|
-
ogb==1.3.6
|
|
9
|
-
PyGSP==0.5.1
|
|
10
|
-
scikit_learn==1.4.2
|
|
11
|
-
scipy==1.14.0
|
|
12
|
-
setuptools==68.2.2
|
|
13
|
-
sortedcontainers==2.4.0
|
|
14
|
-
torch==2.2.2
|
|
15
|
-
torch_geometric==2.5.3
|
|
16
|
-
torch_scatter==2.1.2+pt22cu121
|
|
17
|
-
torch_sparse==0.6.18+pt22cu121
|
|
18
|
-
tqdm==4.66.2
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
click==8.1.7
|
|
2
|
-
deeprobust==0.2.10
|
|
3
|
-
matplotlib==3.5.2
|
|
4
|
-
networkx==2.8
|
|
5
|
-
networkit==11.0
|
|
6
|
-
numpy==1.24.4
|
|
7
|
-
ogb==1.3.6
|
|
8
|
-
PyGSP==0.5.1
|
|
9
|
-
scikit_learn==1.3.0
|
|
10
|
-
scipy==1.13.1
|
|
11
|
-
setuptools==68.2.2
|
|
12
|
-
sortedcontainers==2.4.0
|
|
13
|
-
torch==1.12.1
|
|
14
|
-
torch_geometric==2.5.3
|
|
15
|
-
torch_scatter==2.0.9
|
|
16
|
-
torch_sparse==0.6.16+pt112cu113
|
|
17
|
-
tqdm==4.64.0
|
|
18
|
-
gdown==5.2.0
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import sys
|
|
3
|
-
|
|
4
|
-
if os.path.abspath('..') not in sys.path:
|
|
5
|
-
sys.path.append(os.path.abspath('..'))
|
|
6
|
-
|
|
7
|
-
from graphslim.configs import cli
|
|
8
|
-
from graphslim.dataset import *
|
|
9
|
-
from graphslim.evaluation import *
|
|
10
|
-
from graphslim.sparsification import *
|
|
11
|
-
from graphslim.condensation import *
|
|
12
|
-
from graphslim.coarsening import *
|
|
13
|
-
from graphslim.utils import seed_everything, to_camel_case
|
|
14
|
-
|
|
15
|
-
if __name__ == '__main__':
|
|
16
|
-
args = cli(standalone_mode=False)
|
|
17
|
-
graph = get_dataset(args.dataset, args)
|
|
18
|
-
if args.attack is not None:
|
|
19
|
-
data = attack(graph, args)
|
|
20
|
-
if args.method == 'kcenter' and not args.aggpreprocess:
|
|
21
|
-
agent = KCenter(setting=args.setting, reduction_rate=args.reduction_rate, data=graph, args=args)
|
|
22
|
-
elif args.method == 'kcenter' and args.aggpreprocess:
|
|
23
|
-
agent = KCenterAgg(setting=args.setting, data=graph, args=args)
|
|
24
|
-
elif args.method == 'herding' and not args.aggpreprocess:
|
|
25
|
-
agent = Herding(setting=args.setting, data=graph, args=args)
|
|
26
|
-
elif args.method == 'herding' and args.aggpreprocess:
|
|
27
|
-
agent = HerdingAgg(setting=args.setting, data=graph, args=args)
|
|
28
|
-
elif args.method == 'random':
|
|
29
|
-
agent = Random(setting=args.setting, data=graph, args=args)
|
|
30
|
-
elif args.method == 'cent_p':
|
|
31
|
-
agent = CentP(setting=args.setting, data=graph, args=args)
|
|
32
|
-
elif args.method == 'cent_d':
|
|
33
|
-
agent = CentD(setting=args.setting, data=graph, args=args)
|
|
34
|
-
elif args.method == 'gcond':
|
|
35
|
-
agent = GCond(setting=args.setting, data=graph, args=args)
|
|
36
|
-
elif args.method == 'doscond':
|
|
37
|
-
agent = DosCond(setting=args.setting, data=graph, args=args)
|
|
38
|
-
elif args.method in ['doscondx', 'gcondx']:
|
|
39
|
-
agent = DosCondX(setting=args.setting, data=graph, args=args)
|
|
40
|
-
elif args.method == 'sfgc':
|
|
41
|
-
agent = SFGC(setting=args.setting, data=graph, args=args)
|
|
42
|
-
elif args.method == 'sgdd':
|
|
43
|
-
agent = SGDD(setting=args.setting, data=graph, args=args)
|
|
44
|
-
elif args.method == 'gcsntk':
|
|
45
|
-
agent = GCSNTK(setting=args.setting, data=graph, args=args)
|
|
46
|
-
elif args.method == 'msgc':
|
|
47
|
-
agent = MSGC(setting=args.setting, data=graph, args=args)
|
|
48
|
-
elif args.method == 'geom':
|
|
49
|
-
agent = GEOM(setting=args.setting, data=graph, args=args)
|
|
50
|
-
elif args.method == 'vng':
|
|
51
|
-
agent = VNG(setting=args.setting, data=graph, args=args)
|
|
52
|
-
elif args.method == 'clustering' and not args.aggpreprocess:
|
|
53
|
-
agent = Cluster(setting=args.setting, data=graph, args=args)
|
|
54
|
-
elif args.method == 'clustering' and args.aggpreprocess:
|
|
55
|
-
agent = ClusterAgg(setting=args.setting, data=graph, args=args)
|
|
56
|
-
elif args.method == 'averaging':
|
|
57
|
-
agent = Average(setting=args.setting, data=graph, args=args)
|
|
58
|
-
else:
|
|
59
|
-
agent = eval(to_camel_case(args.method))(setting=args.setting, data=graph, args=args)
|
|
60
|
-
reduced_graph = agent.reduce(graph, verbose=args.verbose)
|
|
61
|
-
if args.method in ['variation_edges', 'variation_neighborhoods', 'vng', 'heavy_edge', 'algebraic_JC', 'affinity_GS',
|
|
62
|
-
'kron']:
|
|
63
|
-
if args.setting == 'trans':
|
|
64
|
-
print("real reduction rate", reduced_graph.feat_syn.shape[0] / graph.x.shape[0] * 100, "%")
|
|
65
|
-
else:
|
|
66
|
-
print("real reduction rate", reduced_graph.feat_syn.shape[0] / sum(graph.train_mask).item() * 100, "%")
|
|
67
|
-
evaluator = Evaluator(args)
|
|
68
|
-
res_mean, res_std = evaluator.evaluate(reduced_graph, model_type=args.final_eval_model)
|
|
69
|
-
# args.logger.info(f'Test Mean Accuracy: {100 * all_res[:, 0].mean():.2f} +/- {100 * all_res[:, 1].mean():.2f}')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.1_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.25_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_0.5_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.0.0 → graphslim-1.0.2}/graphslim/sparsification/fixed_idx/idx_cora_1.0_kcenter_15.npy
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|