Published February 18, 2026 | Version 0.6.4
Computational notebook Open

kececilayout

  • 1. Physicist

Description

Kececi Layout (Keçeci Yerleşimi): A deterministic graph layout algorithm designed for visualizing linear or sequential structures with a characteristic "zig-zag" or "serpentine" pattern.

Python implementation of the Keçeci layout algorithm for graph visualization.

Description / Açıklama

This algorithm arranges nodes sequentially along a primary axis and offsets them alternately along a secondary axis. It's particularly useful for path graphs, chains, or showing progression.

Bu algoritma, düğümleri birincil eksen boyunca sıralı olarak yerleştirir ve ikincil eksen boyunca dönüşümlü olarak kaydırır. Yol grafları, zincirler veya ilerlemeyi göstermek için özellikle kullanışlıdır.

English Description

Keçeci Layout:

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.

Key Characteristics:

  • Linear Focus: Particularly useful for visualizing linear or sequential structures, such as paths, chains, or ordered processes.
  • Deterministic: Produces the exact same layout for the same graph and parameters every time.
  • Overlap Reduction: Helps prevent node collisions by spreading nodes out away from the primary axis.
  • Parametric: Can be customized using parameters such as the primary direction (e.g., top-down), the starting side for the secondary offset (e.g., start_right), and the spacing along both axes (primary_spacingsecondary_spacing).

Türkçe Tanımlama

Keçeci Yerleşimi (Keçeci Layout):

Graf görselleştirmede kullanılan deterministik bir düğüm yerleştirme algoritmasıdır. Bu yöntemde düğümler, belirlenen birincil (ana) eksen boyunca sıralı olarak yerleştirilir. Her bir sonraki düğüm, ana eksenin bir sağına bir soluna (veya bir üstüne bir altına) olmak üzere, ikincil eksen doğrultusunda dönüşümlü olarak kaydırılır. Genellikle, ana eksende ilerledikçe ikincil eksendeki kaydırma miktarı artar ve bu da karakteristik bir "zıgzag" veya "yılanvari" desen oluşturur.

Temel Özellikleri:

  • Doğrusal Odak: Özellikle yollar (paths), zincirler veya sıralı süreçler gibi doğrusal veya ardışık yapıları görselleştirmek için kullanışlıdır.
  • Deterministik: Aynı graf ve parametrelerle her zaman aynı sonucu üretir.
  • Çakışmayı Azaltma: Düğümleri ana eksenden uzağa yayarak çakışmaları önlemeye yardımcı olur.
  • Parametrik: Ana eksenin yönü (örn. top-down), ikincil kaydırmanın başlangıç yönü (örn. start_right) ve eksenler arası boşluklar (primary_spacingsecondary_spacing) gibi parametrelerle özelleştirilebilir.

Installation / Kurulum

conda install bilgi::kececilayout -y

pip install kececilayout
 

https://anaconda.org/bilgi/kececilayout

https://pypi.org/project/KececiLayout/

https://github.com/WhiteSymmetry/kececilayout 

Supported Backends

  • NetworkX
  • igraph
  • Rustworkx
  • Networkit
  • Graphillion
  • graph-tool

Note: All backends are supported via unified kececi_layout function.

v0.5.0:

layouts = ['2d', 'cylindrical', 'cubic', 'spherical', 'elliptical', 'toric']

styles = ['standard', 'default', 'curved', 'helix', '3d', 'weighted', 'colored']

v0.5.1: edge (kececi_layout_edge)

v0.6.0: periodic table

Files

Files (565.5 kB)

Name Size Download all
md5:e276a689821befd13e2c35a47a7a8045
89.2 kB Download
md5:ef49b2a4b51c93a9677dace96a515944
161.1 kB Download
md5:40df742b53e64ffb3bb8a17826860796
181.6 kB Download
md5:de46adf488427d79916089e75387d090
133.6 kB Download

Additional details

Dates

Accepted
2025-05-11
KececiLayout

Software

Repository URL
https://anaconda.org/bilgi/kececilayout
Programming language
Python
Development Status
Active