kececilayout 0.3.8__tar.gz → 0.3.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececilayout
3
- Version: 0.3.8
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
@@ -10,7 +10,7 @@ import inspect
10
10
  import warnings
11
11
 
12
12
  # Paket sürüm numarası
13
- __version__ = "0.3.8"
13
+ __version__ = "0.3.9"
14
14
 
15
15
  # =============================================================================
16
16
  # OTOMATİK İÇE AKTARMA VE __all__ OLUŞTURMA
@@ -123,3 +123,4 @@ def old_function_placeholder():
123
123
 
124
124
  # Eğer bu eski fonksiyonu da dışa aktarmak istiyorsanız, __all__ listesine ekleyin
125
125
  # __all__.append('old_function_placeholder')
126
+
@@ -1,9 +1,10 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.3.8"
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"
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.10"] # Diğer bağımlılıkları da ekleyebilirsiniz
10
+
@@ -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.8
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
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "kececilayout"
9
- version = "0.3.8"
9
+ version = "0.3.9"
10
10
 
11
11
  # Diğer proje bilgileri (isteğe bağlı ama tavsiye edilir)
12
12
  authors = [
@@ -50,3 +50,4 @@ test = [
50
50
  "Bug Tracker" = "https://github.com/WhiteSymmetry/kececilayout/issues"
51
51
 
52
52
 
53
+
File without changes
File without changes
File without changes
File without changes
File without changes