kececilayout 0.3.7__py3-none-any.whl → 0.3.9__py3-none-any.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.
- kececilayout/__init__.py +3 -15
- kececilayout/_version.py +1 -6
- kececilayout/kececi_layout.py +26 -0
- {kececilayout-0.3.7.dist-info → kececilayout-0.3.9.dist-info}/METADATA +10 -2
- kececilayout-0.3.9.dist-info/RECORD +8 -0
- kececilayout-0.3.7.dist-info/RECORD +0 -8
- {kececilayout-0.3.7.dist-info → kececilayout-0.3.9.dist-info}/WHEEL +0 -0
- {kececilayout-0.3.7.dist-info → kececilayout-0.3.9.dist-info}/licenses/LICENSE +0 -0
- {kececilayout-0.3.7.dist-info → kececilayout-0.3.9.dist-info}/top_level.txt +0 -0
kececilayout/__init__.py
CHANGED
|
@@ -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.9"
|
|
14
14
|
|
|
15
15
|
# =============================================================================
|
|
16
16
|
# OTOMATİK İÇE AKTARMA VE __all__ OLUŞTURMA
|
|
@@ -25,6 +25,7 @@ from .kececi_layout import ( # Veya fonksiyonların bulunduğu asıl modül
|
|
|
25
25
|
kececi_layout,
|
|
26
26
|
draw_kececi,
|
|
27
27
|
_draw_internal, # Private fonksiyonu açıkça import edin
|
|
28
|
+
_kececi_layout_3d_helix,
|
|
28
29
|
kececi_layout,
|
|
29
30
|
kececi_layout_v4,
|
|
30
31
|
|
|
@@ -77,6 +78,7 @@ __all__ = [
|
|
|
77
78
|
# Drawing functions
|
|
78
79
|
'draw_kececi',
|
|
79
80
|
'_draw_internal', # <- TESTLER İÇİN GEREKLİ
|
|
81
|
+
'_kececi_layout_3d_helix',
|
|
80
82
|
|
|
81
83
|
# Utility functions
|
|
82
84
|
'find_max_node_id',
|
|
@@ -122,17 +124,3 @@ def old_function_placeholder():
|
|
|
122
124
|
# Eğer bu eski fonksiyonu da dışa aktarmak istiyorsanız, __all__ listesine ekleyin
|
|
123
125
|
# __all__.append('old_function_placeholder')
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
kececilayout/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _version.py
|
|
2
2
|
|
|
3
|
-
__version__ = "0.3.
|
|
3
|
+
__version__ = "0.3.9"
|
|
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"
|
|
@@ -8,8 +8,3 @@ __url__ = "https://github.com/WhiteSymmetry/kececilayout"
|
|
|
8
8
|
__docs__ = "https://github.com/WhiteSymmetry/kececilayout" # Opsiyonel: Dokümantasyon linki
|
|
9
9
|
__dependencies__ = ["python>=3.10"] # Diğer bağımlılıkları da ekleyebilirsiniz
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
kececilayout/kececi_layout.py
CHANGED
|
@@ -1143,6 +1143,31 @@ def _kececi_layout_3d_helix(nx_graph):
|
|
|
1143
1143
|
pos_3d[node_id] = (np.cos(angle) * radius, np.sin(angle) * radius, z_step)
|
|
1144
1144
|
return pos_3d
|
|
1145
1145
|
|
|
1146
|
+
def kececi_layout_3d_helix_parametric(nx_graph, z_spacing=2.0, radius=5.0, turns=2.0):
|
|
1147
|
+
"""
|
|
1148
|
+
Parametric 3D helix layout for nodes. User can control spacing, radius, and number of turns.
|
|
1149
|
+
Args:
|
|
1150
|
+
nx_graph: NetworkX graph.
|
|
1151
|
+
z_spacing (float): Vertical distance between consecutive nodes.
|
|
1152
|
+
radius (float): Radius of the helix.
|
|
1153
|
+
turns (float): Number of full turns the helix makes.
|
|
1154
|
+
Returns:
|
|
1155
|
+
dict: {node_id: (x, y, z)}
|
|
1156
|
+
"""
|
|
1157
|
+
nodes = sorted(list(nx_graph.nodes()))
|
|
1158
|
+
pos_3d = {}
|
|
1159
|
+
total_nodes = len(nodes)
|
|
1160
|
+
if total_nodes == 0:
|
|
1161
|
+
return pos_3d
|
|
1162
|
+
|
|
1163
|
+
total_angle = 2 * np.pi * turns
|
|
1164
|
+
for i, node_id in enumerate(nodes):
|
|
1165
|
+
z = i * z_spacing
|
|
1166
|
+
angle = (i / (total_nodes - 1)) * total_angle if total_nodes > 1 else 0
|
|
1167
|
+
x = np.cos(angle) * radius
|
|
1168
|
+
y = np.sin(angle) * radius
|
|
1169
|
+
pos_3d[node_id] = (x, y, z)
|
|
1170
|
+
return pos_3d
|
|
1146
1171
|
|
|
1147
1172
|
# =============================================================================
|
|
1148
1173
|
# 3. INTERNAL DRAWING STYLE IMPLEMENTATIONS
|
|
@@ -1272,3 +1297,4 @@ if __name__ == '__main__':
|
|
|
1272
1297
|
|
|
1273
1298
|
|
|
1274
1299
|
|
|
1300
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kececilayout
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: Çeşitli graf kütüphaneleri için sıralı-zigzag yerleşimleri sağlayan bir Python paketi.
|
|
5
5
|
Home-page: https://github.com/WhiteSymmetry/kececilayout
|
|
6
6
|
Author: Mehmet Keçeci
|
|
@@ -86,7 +86,7 @@ Dynamic: requires-python
|
|
|
86
86
|
[](https://terrarium.evidencepub.io/v2/gh/WhiteSymmetry/kececilayout/HEAD)
|
|
87
87
|
[](https://pepy.tech/projects/kececilayout)
|
|
88
88
|
[](CODE_OF_CONDUCT.md)
|
|
89
|
-
[](https://github.com/WhiteSymmetry/kececilayout/actions/workflows/workflow.yml)
|
|
90
90
|
[](https://github.com/astral-sh/ruff)
|
|
91
91
|
|
|
92
92
|
| **Documentation** | **Paper** |
|
|
@@ -1191,6 +1191,10 @@ If this library was useful to you in your research, please cite us. Following th
|
|
|
1191
1191
|
|
|
1192
1192
|
```
|
|
1193
1193
|
|
|
1194
|
+
Keçeci, M. (2025). Deterministic Visualization of Distribution Power Grids: Integration of Power Grid Model and Keçeci Layout. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.16934620
|
|
1195
|
+
|
|
1196
|
+
Keçeci, M. (2025). Graf Teorisi Eğitiminde Yeni Bir Araç: Z3 ve Keçeci Dizilimi ile Hamilton Probleminin İnteraktif Keşfi. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.16883657
|
|
1197
|
+
|
|
1194
1198
|
Keçeci, M. (2025). The Keçeci Layout: A Deterministic Visualisation Framework for the Structural Analysis of Ordered Systems in Chemistry and Environmental Science. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.16696713
|
|
1195
1199
|
|
|
1196
1200
|
Keçeci, M. (2025). The Keçeci Layout: A Deterministic, Order-Preserving Visualization Algorithm for Structured Systems. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.16526798
|
|
@@ -1243,3 +1247,7 @@ Keçeci, Mehmet. "Keçeci Layout". Open Science Articles (OSAs), Zenodo, 2025. h
|
|
|
1243
1247
|
|
|
1244
1248
|
|
|
1245
1249
|
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
kececilayout/__init__.py,sha256=wxZgl7R0fCjgzR1b5EshGN2GtECSTxUiO5ggXkd1s7Q,3822
|
|
2
|
+
kececilayout/_version.py,sha256=zS6ZQ4G4hAf27IT9zPCoyPAad5ljQfixLSdPHbp-yls,815
|
|
3
|
+
kececilayout/kececi_layout.py,sha256=5KMckoOvH7elXPG3hwzslukkduCgR3cLUd-FYyt_diM,59450
|
|
4
|
+
kececilayout-0.3.9.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
|
5
|
+
kececilayout-0.3.9.dist-info/METADATA,sha256=U0f7dBzupHOH8ch9aqOnyHFHyhXy993tZzB7yB6KnKI,48622
|
|
6
|
+
kececilayout-0.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
kececilayout-0.3.9.dist-info/top_level.txt,sha256=OBzN_wm4q-iwSkeACF4E8ET_LFLJKBTldSH3D1jG2hA,13
|
|
8
|
+
kececilayout-0.3.9.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
kececilayout/__init__.py,sha256=BhzigdOAdQowA1a0CzyrJb9GsTo1VT3b47uCK89yfC4,3788
|
|
2
|
-
kececilayout/_version.py,sha256=5RRmtmQ6dzW9OyXh80rqiLPQfkecPbtppmCL2gWdNVo,825
|
|
3
|
-
kececilayout/kececi_layout.py,sha256=VqN6T7SQXhPOMsSJJEYGx2t6E8qYuLqzIU4W-eTbOYw,58507
|
|
4
|
-
kececilayout-0.3.7.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
|
5
|
-
kececilayout-0.3.7.dist-info/METADATA,sha256=ePzO9gCzSZexDCfEXrOhHiQlMcU2SectDsbnFq3jzyE,48196
|
|
6
|
-
kececilayout-0.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
kececilayout-0.3.7.dist-info/top_level.txt,sha256=OBzN_wm4q-iwSkeACF4E8ET_LFLJKBTldSH3D1jG2hA,13
|
|
8
|
-
kececilayout-0.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|