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.
- asunder/__init__.py +43 -0
- asunder/base/__init__.py +11 -0
- asunder/base/algorithms/RCCS.py +1067 -0
- asunder/base/algorithms/__init__.py +28 -0
- asunder/base/algorithms/community.py +526 -0
- asunder/base/algorithms/core_periphery.py +1149 -0
- asunder/base/algorithms/louvain_modified.py +1040 -0
- asunder/base/algorithms/modular_VFD.py +1913 -0
- asunder/base/algorithms/signed_louvain/__init__.py +9 -0
- asunder/base/algorithms/signed_louvain/community_detection.py +703 -0
- asunder/base/algorithms/signed_louvain/util.py +53 -0
- asunder/base/algorithms/spectral.py +701 -0
- asunder/base/branch_and_price/__init__.py +7 -0
- asunder/base/branch_and_price/branching_tree.py +0 -0
- asunder/base/branch_and_price/symmetry_detection.py +214 -0
- asunder/base/column_generation/__init__.py +18 -0
- asunder/base/column_generation/decomposition.py +470 -0
- asunder/base/column_generation/master.py +226 -0
- asunder/base/column_generation/pricing.py +134 -0
- asunder/base/column_generation/subproblem.py +318 -0
- asunder/base/evaluation/__init__.py +5 -0
- asunder/base/evaluation/metrics.py +433 -0
- asunder/base/legacy/__init__.py +5 -0
- asunder/base/legacy/notebook_compat.py +32 -0
- asunder/base/utils/__init__.py +29 -0
- asunder/base/utils/graph.py +472 -0
- asunder/base/utils/partition_generation.py +642 -0
- asunder/base/visualization/__init__.py +19 -0
- asunder/base/visualization/graphs.py +246 -0
- asunder/base/visualization/matrices.py +85 -0
- asunder/config.py +113 -0
- asunder/load_balancing/__init__.py +12 -0
- asunder/load_balancing/algorithms/VFD.py +1622 -0
- asunder/load_balancing/algorithms/__init__.py +21 -0
- asunder/load_balancing/algorithms/_native/QMETIS-BUILD-INFO.txt +7 -0
- asunder/load_balancing/algorithms/_native/QMETIS-LICENSE +18 -0
- asunder/load_balancing/algorithms/_native/__init__.py +1 -0
- asunder/load_balancing/algorithms/_native/_qmetis_bundle.json +13 -0
- asunder/load_balancing/algorithms/_native/qmetis.dll +0 -0
- asunder/load_balancing/algorithms/_qmetis_assets.json +44 -0
- asunder/load_balancing/algorithms/projection.py +221 -0
- asunder/load_balancing/algorithms/qmetis.py +639 -0
- asunder/load_balancing/column_generation/LB.py +354 -0
- asunder/load_balancing/column_generation/__init__.py +13 -0
- asunder/load_balancing/column_generation/master.py +210 -0
- asunder/load_balancing/column_generation/subproblem.py +187 -0
- asunder/load_balancing/utils/__init__.py +19 -0
- asunder/load_balancing/utils/balance.py +113 -0
- asunder/load_balancing/utils/partition_generation.py +961 -0
- asunder/nlbnp/__init__.py +15 -0
- asunder/nlbnp/algorithms/__init__.py +8 -0
- asunder/nlbnp/algorithms/core_periphery.py +144 -0
- asunder/nlbnp/algorithms/refinement.py +113 -0
- asunder/nlbnp/case_studies/__init__.py +7 -0
- asunder/nlbnp/case_studies/circle_cutting.py +162 -0
- asunder/nlbnp/case_studies/cpcong.py +141 -0
- asunder/nlbnp/case_studies/runner.py +196 -0
- asunder/nlbnp/workflow.py +477 -0
- asunder/orchestrator.py +151 -0
- asunder/solvers.py +62 -0
- asunder/types.py +122 -0
- put_asunder-0.3.0.dist-info/METADATA +346 -0
- put_asunder-0.3.0.dist-info/RECORD +66 -0
- put_asunder-0.3.0.dist-info/WHEEL +5 -0
- put_asunder-0.3.0.dist-info/licenses/LICENSE +28 -0
- 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
|
+
]
|