kececilayout 0.6.0__tar.gz → 0.6.1__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.6.0/kececilayout.egg-info → kececilayout-0.6.1}/PKG-INFO +1 -1
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout/__init__.py +2 -1
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout/_version.py +2 -1
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout/kececi_layout.py +21 -18
- {kececilayout-0.6.0 → kececilayout-0.6.1/kececilayout.egg-info}/PKG-INFO +1 -1
- {kececilayout-0.6.0 → kececilayout-0.6.1}/pyproject.toml +2 -1
- {kececilayout-0.6.0 → kececilayout-0.6.1}/LICENSE +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/MANIFEST.in +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/README.md +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/docs/conf.py +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout.egg-info/SOURCES.txt +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout.egg-info/dependency_links.txt +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout.egg-info/requires.txt +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/kececilayout.egg-info/top_level.txt +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/setup.cfg +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/setup.py +0 -0
- {kececilayout-0.6.0 → kececilayout-0.6.1}/tests/test_sample.py +0 -0
|
@@ -10,7 +10,7 @@ import inspect
|
|
|
10
10
|
import warnings
|
|
11
11
|
|
|
12
12
|
# Paket sürüm numarası
|
|
13
|
-
__version__ = "0.6.
|
|
13
|
+
__version__ = "0.6.1"
|
|
14
14
|
|
|
15
15
|
# =============================================================================
|
|
16
16
|
# OTOMATİK İÇE AKTARMA VE __all__ OLUŞTURMA
|
|
@@ -241,3 +241,4 @@ def old_function_placeholder():
|
|
|
241
241
|
|
|
242
242
|
|
|
243
243
|
|
|
244
|
+
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# _version.py
|
|
2
2
|
|
|
3
|
-
__version__ = "0.6.
|
|
3
|
+
__version__ = "0.6.1"
|
|
4
4
|
__license__ = "AGPL3.0-or-later"
|
|
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.11"] # Diğer bağımlılıkları da ekleyebilirsiniz
|
|
10
|
+
|
|
@@ -658,7 +658,7 @@ def kececi_layout_ig(graph: "ig.Graph", primary_spacing=1.0, secondary_spacing=1
|
|
|
658
658
|
if num_nodes == 0:
|
|
659
659
|
return []
|
|
660
660
|
|
|
661
|
-
#
|
|
661
|
+
# generate coordinate list (will be ordered by vertex IDs 0 to N-1)
|
|
662
662
|
pos_list = [[0.0, 0.0]] * num_nodes
|
|
663
663
|
# Since vertex IDs are already 0 to N-1, we can use range directly
|
|
664
664
|
nodes = range(num_nodes) # Vertex IDs
|
|
@@ -722,7 +722,7 @@ def kececi_layout_igraph(graph: "ig.Graph", primary_spacing=1.0, secondary_spaci
|
|
|
722
722
|
if num_nodes == 0:
|
|
723
723
|
return []
|
|
724
724
|
|
|
725
|
-
#
|
|
725
|
+
# generate coordinate list (will be ordered by vertex IDs 0 to N-1)
|
|
726
726
|
pos_list = [[0.0, 0.0]] * num_nodes
|
|
727
727
|
# Since vertex IDs are already 0 to N-1, we can use range directly
|
|
728
728
|
nodes = range(num_nodes) # Vertex IDs
|
|
@@ -934,7 +934,7 @@ def kececi_layout_gg(graph_set: "gg.GraphSet", primary_spacing=1.0, secondary_sp
|
|
|
934
934
|
return {}
|
|
935
935
|
|
|
936
936
|
# Graphillion often uses 1-based node indexing.
|
|
937
|
-
#
|
|
937
|
+
# generate the node ID list: 1, 2, ..., num_vertices
|
|
938
938
|
nodes = list(range(1, num_vertices + 1))
|
|
939
939
|
|
|
940
940
|
pos = {}
|
|
@@ -999,7 +999,7 @@ def kececi_layout_graphillion(graph_set: "gg.GraphSet", primary_spacing=1.0, sec
|
|
|
999
999
|
return {}
|
|
1000
1000
|
|
|
1001
1001
|
# Graphillion often uses 1-based node indexing.
|
|
1002
|
-
#
|
|
1002
|
+
# generate the node ID list: 1, 2, ..., num_vertices
|
|
1003
1003
|
nodes = list(range(1, num_vertices + 1))
|
|
1004
1004
|
|
|
1005
1005
|
pos = {}
|
|
@@ -2820,7 +2820,7 @@ def draw_kececi(graph, style='curved', ax=None, **kwargs):
|
|
|
2820
2820
|
graph: The graph object to be drawn.
|
|
2821
2821
|
style (str): The drawing style. Options: 'curved', 'transparent', '3d'.
|
|
2822
2822
|
ax (matplotlib.axis.Axis, optional): The axis to draw on. If not
|
|
2823
|
-
provided, a new figure and axis are
|
|
2823
|
+
provided, a new figure and axis are generated.
|
|
2824
2824
|
**kwargs: Additional keyword arguments passed to both `kececi_layout`
|
|
2825
2825
|
and the drawing functions (e.g., expanding=True, node_size=500).
|
|
2826
2826
|
|
|
@@ -3363,12 +3363,12 @@ def _generate_title(layout_type, node_count, color_scheme, dimension):
|
|
|
3363
3363
|
scheme_text = color_scheme.capitalize()
|
|
3364
3364
|
|
|
3365
3365
|
layout_names = {
|
|
3366
|
-
'3d_helix': '
|
|
3367
|
-
'2d_linear': '
|
|
3366
|
+
'3d_helix': 'Heliks Layout',
|
|
3367
|
+
'2d_linear': 'Lineer Layout',
|
|
3368
3368
|
'2d_circular': 'Dairesel Layout',
|
|
3369
|
-
'3d_spherical': '
|
|
3370
|
-
'2d_spring': '
|
|
3371
|
-
'2d_grid': '
|
|
3369
|
+
'3d_spherical': 'Küresel Layout',
|
|
3370
|
+
'2d_spring': 'Yay Layout',
|
|
3371
|
+
'2d_grid': 'Grid Layout'
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
3374
|
layout_name = layout_names.get(layout_type, layout_type.replace('_', ' ').title())
|
|
@@ -4096,11 +4096,11 @@ def custom_visualization():
|
|
|
4096
4096
|
|
|
4097
4097
|
# Layout seçenekleri
|
|
4098
4098
|
layouts = {
|
|
4099
|
-
'1': ('3d_helix', '
|
|
4100
|
-
'2': ('2d_linear', '
|
|
4101
|
-
'3': ('2d_grid', '
|
|
4102
|
-
'4': ('2d_circular', '
|
|
4103
|
-
'5': ('2d_spring', '
|
|
4099
|
+
'1': ('3d_helix', 'Heliks Layout'),
|
|
4100
|
+
'2': ('2d_linear', 'Linear Layout'),
|
|
4101
|
+
'3': ('2d_grid', 'Grid Layout'),
|
|
4102
|
+
'4': ('2d_circular', 'Dairesel Layout'),
|
|
4103
|
+
'5': ('2d_spring', 'Yay Layout')
|
|
4104
4104
|
}
|
|
4105
4105
|
|
|
4106
4106
|
print("\nLayout Tipleri:")
|
|
@@ -4121,7 +4121,7 @@ def custom_visualization():
|
|
|
4121
4121
|
'3': 'pastel',
|
|
4122
4122
|
'4': 'group',
|
|
4123
4123
|
'5': 'period',
|
|
4124
|
-
'
|
|
4124
|
+
'7': 'electronegativity',
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
4127
|
print("\nRenk Şemaları:")
|
|
@@ -4131,8 +4131,9 @@ def custom_visualization():
|
|
|
4131
4131
|
print("4. Group (Gruplara göre)")
|
|
4132
4132
|
print("5. Period (Periyotlara göre)")
|
|
4133
4133
|
print("6. Block (Bloklara göre)")
|
|
4134
|
+
print("7. electronegativity (Electronegativitiye göre)")
|
|
4134
4135
|
|
|
4135
|
-
color_choice = input("\nRenk şeması seçin (1-
|
|
4136
|
+
color_choice = input("\nRenk şeması seçin (1-7): ").strip()
|
|
4136
4137
|
if color_choice not in color_schemes:
|
|
4137
4138
|
print("Varsayılan olarak Vibrant seçildi.")
|
|
4138
4139
|
color_scheme = 'vibrant'
|
|
@@ -4171,7 +4172,7 @@ def custom_visualization():
|
|
|
4171
4172
|
node_size=node_size,
|
|
4172
4173
|
font_size=font_size,
|
|
4173
4174
|
title=custom_title if custom_title else None,
|
|
4174
|
-
show_legend=(color_scheme in ['group', 'period', 'block'])
|
|
4175
|
+
show_legend=(color_scheme in ['vibrant', 'distinct', 'pastel', 'group', 'period', 'block', 'electronegativity'])
|
|
4175
4176
|
)
|
|
4176
4177
|
|
|
4177
4178
|
plt.tight_layout()
|
|
@@ -4266,3 +4267,5 @@ if __name__ == '__main__':
|
|
|
4266
4267
|
draw_kececi(G_test, style='3d', ax=fig_styles.add_subplot(2, 2, (3, 4), projection='3d'))
|
|
4267
4268
|
plt.tight_layout(rect=[0, 0, 1, 0.96])
|
|
4268
4269
|
plt.show()
|
|
4270
|
+
|
|
4271
|
+
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "kececilayout"
|
|
9
|
-
version = "0.6.
|
|
9
|
+
version = "0.6.1"
|
|
10
10
|
|
|
11
11
|
# Diğer proje bilgileri (isteğe bağlı ama tavsiye edilir)
|
|
12
12
|
authors = [
|
|
@@ -82,3 +82,4 @@ configuration = "docs/conf.py" # Build konfigürasyonu belirtin
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
+
|
|
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
|
|
File without changes
|
|
File without changes
|