kececilayout 0.3.1__tar.gz → 0.3.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.
- {kececilayout-0.3.1/kececilayout.egg-info → kececilayout-0.3.2}/PKG-INFO +1 -1
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout/__init__.py +73 -3
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout/_version.py +2 -1
- {kececilayout-0.3.1 → kececilayout-0.3.2/kececilayout.egg-info}/PKG-INFO +1 -1
- {kececilayout-0.3.1 → kececilayout-0.3.2}/pyproject.toml +2 -1
- {kececilayout-0.3.1 → kececilayout-0.3.2}/setup.py +5 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/tests/test_sample.py +2 -1
- {kececilayout-0.3.1 → kececilayout-0.3.2}/LICENSE +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/MANIFEST.in +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/README.md +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout/kececi_layout.py +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout.egg-info/SOURCES.txt +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout.egg-info/dependency_links.txt +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout.egg-info/requires.txt +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/kececilayout.egg-info/top_level.txt +0 -0
- {kececilayout-0.3.1 → kececilayout-0.3.2}/setup.cfg +0 -0
|
@@ -10,7 +10,7 @@ import inspect
|
|
|
10
10
|
import warnings
|
|
11
11
|
|
|
12
12
|
# Paket sürüm numarası
|
|
13
|
-
__version__ = "0.3.
|
|
13
|
+
__version__ = "0.3.2"
|
|
14
14
|
|
|
15
15
|
# =============================================================================
|
|
16
16
|
# OTOMATİK İÇE AKTARMA VE __all__ OLUŞTURMA
|
|
@@ -19,10 +19,74 @@ __version__ = "0.3.1"
|
|
|
19
19
|
# =============================================================================
|
|
20
20
|
|
|
21
21
|
# Ana modülümüzü içe aktarıyoruz
|
|
22
|
-
from . import kececi_layout
|
|
22
|
+
#from . import kececi_layout
|
|
23
|
+
|
|
24
|
+
from .kececi_layout import ( # Veya fonksiyonların bulunduğu asıl modül
|
|
25
|
+
kececi_layout,
|
|
26
|
+
draw_kececi,
|
|
27
|
+
_draw_internal, # Private fonksiyonu açıkça import edin
|
|
28
|
+
kececi_layout,
|
|
29
|
+
kececi_layout_v4,
|
|
30
|
+
|
|
31
|
+
# Library-specific layout functions
|
|
32
|
+
kececi_layout_nx,
|
|
33
|
+
kececi_layout_networkx,
|
|
34
|
+
kececi_layout_ig,
|
|
35
|
+
kececi_layout_igraph,
|
|
36
|
+
kececi_layout_nk,
|
|
37
|
+
kececi_layout_networkit,
|
|
38
|
+
kececi_layout_gg,
|
|
39
|
+
kececi_layout_graphillion,
|
|
40
|
+
kececi_layout_rx,
|
|
41
|
+
kececi_layout_rustworkx,
|
|
42
|
+
kececi_layout_pure,
|
|
43
|
+
|
|
44
|
+
# Drawing functions
|
|
45
|
+
draw_kececi,
|
|
46
|
+
#'_draw_internal', # <- TESTLER İÇİN GEREKLİ
|
|
47
|
+
|
|
48
|
+
# Utility functions
|
|
49
|
+
find_max_node_id,
|
|
50
|
+
to_networkx,
|
|
51
|
+
|
|
52
|
+
# Graph generation functions
|
|
53
|
+
generate_random_graph,
|
|
54
|
+
generate_random_graph_ig,
|
|
55
|
+
generate_random_rx_graph
|
|
56
|
+
)
|
|
23
57
|
|
|
24
58
|
# __all__ listesini dinamik olarak dolduracağız
|
|
25
|
-
__all__ = [
|
|
59
|
+
__all__ = [
|
|
60
|
+
# Core layout functions
|
|
61
|
+
'kececi_layout',
|
|
62
|
+
'kececi_layout_v4',
|
|
63
|
+
|
|
64
|
+
# Library-specific layout functions
|
|
65
|
+
'kececi_layout_nx',
|
|
66
|
+
'kececi_layout_networkx',
|
|
67
|
+
'kececi_layout_ig',
|
|
68
|
+
'kececi_layout_igraph',
|
|
69
|
+
'kececi_layout_nk',
|
|
70
|
+
'kececi_layout_networkit',
|
|
71
|
+
'kececi_layout_gg',
|
|
72
|
+
'kececi_layout_graphillion',
|
|
73
|
+
'kececi_layout_rx',
|
|
74
|
+
'kececi_layout_rustworkx',
|
|
75
|
+
'kececi_layout_pure',
|
|
76
|
+
|
|
77
|
+
# Drawing functions
|
|
78
|
+
'draw_kececi',
|
|
79
|
+
'_draw_internal', # <- TESTLER İÇİN GEREKLİ
|
|
80
|
+
|
|
81
|
+
# Utility functions
|
|
82
|
+
'find_max_node_id',
|
|
83
|
+
'to_networkx',
|
|
84
|
+
|
|
85
|
+
# Graph generation functions
|
|
86
|
+
'generate_random_graph',
|
|
87
|
+
'generate_random_graph_ig',
|
|
88
|
+
'generate_random_rx_graph'
|
|
89
|
+
]
|
|
26
90
|
|
|
27
91
|
# kececi_layout modülünün içindeki tüm üyelere (fonksiyonlar, sınıflar vb.) bak
|
|
28
92
|
for name, member in inspect.getmembers(kececi_layout):
|
|
@@ -62,3 +126,9 @@ def old_function_placeholder():
|
|
|
62
126
|
|
|
63
127
|
|
|
64
128
|
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# _version.py
|
|
2
2
|
|
|
3
|
-
__version__ = "0.3.
|
|
3
|
+
__version__ = "0.3.2"
|
|
4
4
|
__license__ = "MIT"
|
|
5
5
|
__description__ = "A deterministic node placement algorithm used in graph visualization. In this layout, nodes are arranged sequentially along a defined primary axis. Each subsequent node is then alternately offset along a secondary, perpendicular axis, typically moving to one side of the primary axis and then the other. Often, the magnitude of this secondary offset increases as nodes progress along the primary axis, creating a characteristic zig-zag or serpentine pattern."
|
|
6
6
|
__author__ = "Mehmet Keçeci"
|
|
7
7
|
__url__ = "https://github.com/WhiteSymmetry/kececilayout"
|
|
8
8
|
__docs__ = "https://github.com/WhiteSymmetry/kececilayout" # Opsiyonel: Dokümantasyon linki
|
|
9
9
|
__dependencies__ = ["python>=3.9"] # Diğer bağımlılıkları da ekleyebilirsiniz
|
|
10
|
+
|
|
@@ -8,6 +8,7 @@ graph type compatibility, error handling, and drawing function routing.
|
|
|
8
8
|
|
|
9
9
|
import numpy as np
|
|
10
10
|
import pytest
|
|
11
|
+
from unittest.mock import patch
|
|
11
12
|
|
|
12
13
|
# Import the module to be tested
|
|
13
14
|
# Assume the code is in a file named `kececilayout_lib.py` in the same directory
|
|
@@ -20,7 +21,7 @@ from kececilayout import (
|
|
|
20
21
|
kececi_layout, # Assuming this is the main, multi-library compatible function
|
|
21
22
|
to_networkx,
|
|
22
23
|
draw_kececi,
|
|
23
|
-
|
|
24
|
+
_draw_internal # Also test the internal router
|
|
24
25
|
)
|
|
25
26
|
|
|
26
27
|
# Pytest markers to skip tests if optional libraries are not installed
|
|
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
|