put-asunder 0.3.0__py3-none-win_amd64.whl

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.
Files changed (66) hide show
  1. asunder/__init__.py +43 -0
  2. asunder/base/__init__.py +11 -0
  3. asunder/base/algorithms/RCCS.py +1067 -0
  4. asunder/base/algorithms/__init__.py +28 -0
  5. asunder/base/algorithms/community.py +526 -0
  6. asunder/base/algorithms/core_periphery.py +1149 -0
  7. asunder/base/algorithms/louvain_modified.py +1040 -0
  8. asunder/base/algorithms/modular_VFD.py +1913 -0
  9. asunder/base/algorithms/signed_louvain/__init__.py +9 -0
  10. asunder/base/algorithms/signed_louvain/community_detection.py +703 -0
  11. asunder/base/algorithms/signed_louvain/util.py +53 -0
  12. asunder/base/algorithms/spectral.py +701 -0
  13. asunder/base/branch_and_price/__init__.py +7 -0
  14. asunder/base/branch_and_price/branching_tree.py +0 -0
  15. asunder/base/branch_and_price/symmetry_detection.py +214 -0
  16. asunder/base/column_generation/__init__.py +18 -0
  17. asunder/base/column_generation/decomposition.py +470 -0
  18. asunder/base/column_generation/master.py +226 -0
  19. asunder/base/column_generation/pricing.py +134 -0
  20. asunder/base/column_generation/subproblem.py +318 -0
  21. asunder/base/evaluation/__init__.py +5 -0
  22. asunder/base/evaluation/metrics.py +433 -0
  23. asunder/base/legacy/__init__.py +5 -0
  24. asunder/base/legacy/notebook_compat.py +32 -0
  25. asunder/base/utils/__init__.py +29 -0
  26. asunder/base/utils/graph.py +472 -0
  27. asunder/base/utils/partition_generation.py +642 -0
  28. asunder/base/visualization/__init__.py +19 -0
  29. asunder/base/visualization/graphs.py +246 -0
  30. asunder/base/visualization/matrices.py +85 -0
  31. asunder/config.py +113 -0
  32. asunder/load_balancing/__init__.py +12 -0
  33. asunder/load_balancing/algorithms/VFD.py +1622 -0
  34. asunder/load_balancing/algorithms/__init__.py +21 -0
  35. asunder/load_balancing/algorithms/_native/QMETIS-BUILD-INFO.txt +7 -0
  36. asunder/load_balancing/algorithms/_native/QMETIS-LICENSE +18 -0
  37. asunder/load_balancing/algorithms/_native/__init__.py +1 -0
  38. asunder/load_balancing/algorithms/_native/_qmetis_bundle.json +13 -0
  39. asunder/load_balancing/algorithms/_native/qmetis.dll +0 -0
  40. asunder/load_balancing/algorithms/_qmetis_assets.json +44 -0
  41. asunder/load_balancing/algorithms/projection.py +221 -0
  42. asunder/load_balancing/algorithms/qmetis.py +639 -0
  43. asunder/load_balancing/column_generation/LB.py +354 -0
  44. asunder/load_balancing/column_generation/__init__.py +13 -0
  45. asunder/load_balancing/column_generation/master.py +210 -0
  46. asunder/load_balancing/column_generation/subproblem.py +187 -0
  47. asunder/load_balancing/utils/__init__.py +19 -0
  48. asunder/load_balancing/utils/balance.py +113 -0
  49. asunder/load_balancing/utils/partition_generation.py +961 -0
  50. asunder/nlbnp/__init__.py +15 -0
  51. asunder/nlbnp/algorithms/__init__.py +8 -0
  52. asunder/nlbnp/algorithms/core_periphery.py +144 -0
  53. asunder/nlbnp/algorithms/refinement.py +113 -0
  54. asunder/nlbnp/case_studies/__init__.py +7 -0
  55. asunder/nlbnp/case_studies/circle_cutting.py +162 -0
  56. asunder/nlbnp/case_studies/cpcong.py +141 -0
  57. asunder/nlbnp/case_studies/runner.py +196 -0
  58. asunder/nlbnp/workflow.py +477 -0
  59. asunder/orchestrator.py +151 -0
  60. asunder/solvers.py +62 -0
  61. asunder/types.py +122 -0
  62. put_asunder-0.3.0.dist-info/METADATA +346 -0
  63. put_asunder-0.3.0.dist-info/RECORD +66 -0
  64. put_asunder-0.3.0.dist-info/WHEEL +5 -0
  65. put_asunder-0.3.0.dist-info/licenses/LICENSE +28 -0
  66. put_asunder-0.3.0.dist-info/top_level.txt +1 -0
asunder/__init__.py ADDED
@@ -0,0 +1,43 @@
1
+ """Asunder: Constrained structure detection on undirected graphs."""
2
+
3
+ from asunder.base.column_generation.master import solve_master_problem
4
+ from asunder.base.column_generation.subproblem import solve_subproblem
5
+ from asunder.config import CSDDecompositionConfig
6
+ from asunder.orchestrator import CSDDecomposition, run_csd_decomposition
7
+ from asunder.solvers import create_solver
8
+ from asunder.types import DecompositionResult, IterationRecord
9
+
10
+ __version__ = "0.3.0"
11
+
12
+ def run_evaluation(*args, **kwargs):
13
+ """
14
+ Run benchmark evaluations using :mod:`asunder.nlbnp.case_studies.runner`.
15
+
16
+ Parameters
17
+ ----------
18
+ *args : Any
19
+ Additional positional arguments.
20
+ **kwargs : Any
21
+ Additional keyword arguments.
22
+
23
+ Returns
24
+ -------
25
+ Any
26
+ Computed result.
27
+ """
28
+ from asunder.nlbnp.case_studies.runner import run_evaluation as _run_evaluation
29
+
30
+ return _run_evaluation(*args, **kwargs)
31
+
32
+
33
+ __all__ = [
34
+ "CSDDecomposition",
35
+ "CSDDecompositionConfig",
36
+ "DecompositionResult",
37
+ "IterationRecord",
38
+ "create_solver",
39
+ "run_csd_decomposition",
40
+ "run_evaluation",
41
+ "solve_master_problem",
42
+ "solve_subproblem",
43
+ ]
@@ -0,0 +1,11 @@
1
+ """Reusable building blocks for Asunder."""
2
+
3
+ __all__ = [
4
+ "algorithms",
5
+ "branch_and_price",
6
+ "column_generation",
7
+ "evaluation",
8
+ "legacy",
9
+ "utils",
10
+ "visualization",
11
+ ]