Circular Layout
Reveal cluster structures and partitioned groups through ring-based arrangements

The circular layout is designed to highlight the natural clustering within a network. By partitioning nodes into groups and arranging them on circles or rings, it makes complex interconnections and community structures immediately visible.

Explore how to visualize partitioned data, understand the underlying clustering algorithms, and customize the layout for applications ranging from social networks to infrastructure analysis.

Circular layout example

What is a circular layout?

A circular layout organizes a graph by identifying clusters (groups of highly connected nodes) and placing each group on its own circle. This approach is particularly powerful for non-hierarchical networks where the goal is to show "who belongs with whom" rather than a top-down flow.

  • Automatic identification of natural clusters in the data.
  • Arranging nodes of a cluster on a shared ring or circle.
  • Minimizing edge crossings both within and between circles.
  • Balancing the layout to emphasize connections between different groups.

The algorithm works in two main steps: First, it partitions the graph into clusters. Second, it calculates the optimal order of nodes on each circle to ensure the resulting diagram is clean and easy to read. This makes it a "best of both worlds" solution for networks that are too complex for a simple organic layout but don't have a tree-like hierarchy.

Build your own circular visualization

Whether you are analyzing community structures in social media or visualizing segments in a power grid, yFiles’ circular layout provides the tools to transform raw data into clear, clustered diagrams.

The layout is highly configurable: choose between different clustering strategies, control the sizing of rings, and decide how edges between clusters should be routed to maintain maximum clarity.

Start building your circular network application today—for free!

Start now

Circular Substructures Sample

Developing circular diagrams with yFiles.

Get in touch to discuss your specific challenges with our diagramming experts. We're here to provide the guidance you need.

Developing circular diagrams with yFiles.

We´d love to help you. Reach out and we'll get in touch with you.

We are sorry, something went wrong. Please try again.
If the problem persists, please report the error to webmaster@yworks.com.
Thank you!

Your message has been sent.

Use cases
Practical applications of yFiles’ circular layout

Circular layouts are the go-to choice for networks where grouping is more important than direction. They help users identify "islands" of information and the bridges that connect them.

Social network analysis (SNA)

In social networks, individuals often form tight-knit groups based on interests or locations. The circular layout:

  • Groups communities on separate rings.
  • Makes "gatekeepers" (nodes connecting two circles) stand out.
  • Provides a compact view of even very large populations.

Network infrastructure & security

For IT networks, the circular layout can visualize subnets or VLANs:

  • Subnets are represented as distinct circular clusters.
  • Core switches can be placed to show how they link different segments.
  • Vulnerability analysis becomes easier as isolated or highly connected clusters are identified.
Circular layout demo

Computational biology

In fields like genetics and epidemiology, understanding relationships is key. The circular layout is ideal for visualizing protein-protein interaction (PPI) networks, gene clusters, and pathogen transmission chains. It automatically groups related entities into functional modules or outbreak clusters, making complex biological systems easier to interpret.

For instance, in a study on the hospital dissemination of Staphylococcus aureus, researchers from the University Pierre et Marie Curie in Paris used yFiles to visualize their data. The circular layout helped reveal distinct transmission clusters, supporting the analysis of how the pathogen spread.

Publication: Staphylococcus

When to choose the circular layout

Circular layouts are the ideal choice when your data has an inherent cluster or community structure. While other layouts might result in a "hairball" for highly connected networks, the circular layout reveals the underlying partitions by grouping nodes into distinct rings.

The table below compares circular layout applications to help you decide when it is the best choice for your network:

Use caseWhy circular layout?Alternative layoutBest for
Social communitiesGroups people by common interests or affiliationsOrganic layout Community detection, friendship circles
IT infrastructureVisualizes subnets, VLANs, or server clustersHierarchical layoutNetwork segmentation, security zones
Biology & geneticsShows protein complexes or gene clustersRadial layoutInteraction maps, functional groupings
Fraud detectionHighlights isolated groups of suspicious activityOrganic layoutIdentifying rings, collision analysis
Software engineeringDisplays package dependencies and modulesHierarchical layoutArchitecture analysis, dependency clusters

Core principles of the circular layout
From partitioning to ring arrangement

The yFiles circular layout algorithm uses a sophisticated, multi-stage pipeline to transform complex graphs into clear visualizations. It intelligently decomposes the graph and applies specialized layout algorithms to each part before combining the results.

Step 1: Determine partitions

The first and most critical step is partitioning. The algorithm analyzes the network to identify core cyclical partitions (dense, highly-connected clusters) and any tree-like structures attached to them. yFiles offers several ways to define the partitions that will be arranged in circles:

  • Automatic clustering: The algorithm uses graph-theoretical measures (like biconnected components) to find partitions.
  • Custom partitioning: You can provide your own data (e.g., 'Department' or 'Location') to define the circles.
  • Single cycle: Force all nodes onto a single large ring for specific aesthetic requirements.

Step 2: Arrange and combine

Once the partitions have been determined, the algorithm arranges them to form the overall structure of the layout. Each partition is placed on its own circle using the specialized Single Cycle Layout, which optimizes the order of nodes on the ring to reduce edge crossings—this includes both edges within the same circle and edges connecting different circles.

After all partitions have been laid out as circles, the algorithm builds a tree structure connecting these rings according to the topology found in your network. This “tree of circles,” which may represent the main structure of your graph, is then arranged using the Radial Tree Layout (previously known as Balloon Layout). This ensures that the circles are positioned clearly relative to one another, and that any tree-like appendages or outliers connected to the circles are incorporated in a natural, readable hierarchy.

By combining Single Cycle Layout for each partition and Radial Tree Layout for the global arrangement, the result is a unified visualization that captures both the core clusters and any connective structures between them.

Radius control

Adjust how large each circle should be, either automatically based on node count or with fixed values.

Edge routing

Choose between straight lines, curved arcs, or bundled edges.

Label placement

Automatically place labels outside the rings or oriented towards the center to save space.

Concepts recap

ConceptMeaning
Partitioning strategyMethod for grouping nodes into clusters, which can be automatic (e.g., biconnected components) or user-defined.
Node orderingOptimizing the sequence of nodes on each circle to minimize edge crossings and improve readability.
Hybrid layoutCombining the “Single Cycle Layout” for core clusters with the “Radial Tree Layout” for attached tree-like structures.
Global positioningArranging the different circles relative to each other, often placing highly connected clusters closer together.
Edge routingDefining the path of edges, for example, through the circle's interior or around its exterior.
Radius controlAdjusting the size of each circle, either automatically based on node count or with fixed values.

Watch the full webinar episode

Watch the full episode below to gain a comprehensive understanding of circular layouts in yFiles. Dr. Benjamin Niedermann walks you through the core concepts and provides practical demonstrations.

Explore more resources:

load from YouTube

Watch the full episode below to gain a comprehensive understanding of circular layouts in yFiles. Dr. Benjamin Niedermann walks you through the core concepts and provides practical demonstrations.

load from YouTube

Explore more resources:

Interactive circular layout demos

Discover a selection of interactive demos showcasing different circular layout features in yFiles. Explore how various layout options help visualize complex structured data clearly and intuitively.

Routing styles

The visual appeal of a circular layout depends heavily on how edges are routed. yFiles supports interior and exterior routing:

Interior

Edges between nodes of the same circle are routed through the circle's center (as straight lines, arcs, or polylines).

Exterior

Edges are routed around the outside to keep the center of the ring empty for labels or icons.

Mixed

Automatically determines internal and external routing of edges for optimal layout readability.
Interior Edge Routing

Interior edge routing

Exterior Edge Routing

Exterior edge routing

Mixed Edge Routing

Mixed edge routing

Step-by-step guide
How to create a circular layout with yFiles

Creating a circular graph layout with yFiles is a straightforward process:

1. Create the network from business data

Start by initializing the graph structure and applying a basic circular layout. yFiles automatically groups nodes into clusters and arranges them on rings—no manual configuration needed.

2. Make information visible

Enrich the graph by adding labels, applying colors, and defining item sizes—all dynamically driven by your data to make the structure immediately meaningful.

3. Customize clustering and ring arrangement

If the default partitioning doesn't fit your use case, you can provide custom partition IDs via CircularLayoutData to control how nodes are grouped onto rings. Optionally adjust node spacing or minimum ring radius to better suit your data.

4. Apply different layout options

Fine-tune the visual result with additional options such as choosing an edge routing style—like Interior (through the circle) or Exterior—or enabling automatic label placement to keep the diagram clear and readable.

Playground sample - Circular Layout

Interactive circular layout playground

The Playground lets you experiment with yFiles' circular layout interactively. Adjust clustering strategies, modify ring spacing, and explore different edge routing styles to see results instantly in your browser.

graph.nodeDefaults.size = [70, 70]; graph.nodeDefaults.style = new ShapeNodeStyle({ shape: ShapeNodeShape.ELLIPSE, cssClass: "node", }); graph.nodeDefaults.labels.style = new LabelStyle({ shape: LabelShape.PILL, backgroundFill: "white", backgroundStroke: "1px solid #6A8293", font: "15px poppins", textFill: "#6A8293", }); graph.edgeDefaults.labels.style = new LabelStyle({ shape: LabelShape.PILL, backgroundFill: "#6A8293", backgroundStroke: "1px solid white", font: "15px poppins", textFill: "white", }); graphComponent.fitGraphBounds()

Why use yFiles' circular layout?
Unique capabilities for radial layouts you won’t find in other SDKs.

While many software development kits (SDKs) can generate circular layouts, only yFiles provides these game-changing advantages, like edge bundling, and custom partitions:

The yFiles circular layout is the ultimate tool for turning "hairball" graphs into partitioned, readable maps. It scales effortlessly from small teams to massive infrastructure networks.

All of this is powered by the yFiles layout engine, ensuring lightning-fast calculations and high-quality results in every browser and framework.

Frequently Asked Questions

Recap

Circular layout

Circular layout is a graph visualization technique that reveals the cluster structure of a network by partitioning nodes into groups and arranging them on distinct circles or rings. This approach is highly effective for non-hierarchical networks, such as social communities, IT infrastructure segments, and protein-protein interaction maps, where highlighting "who belongs with whom" is the primary goal.

The yFiles SDK provides a state-of-the-art circular layout algorithm that automatically identifies natural clusters using advanced graph-theoretical partitioning. As discussed in the sections about circular layout and core principles, the algorithm minimizes edge crossings within rings and optimizes the global arrangement of clusters to highlight inter-group connections. Developers can choose between various clustering strategies, customize ring radii, and select between interior or exterior edge routing styles to ensure maximum readability for dense networks. Check out the Key Benefits to see why yFiles stands out for partitioned visualizations.

For implementation details and inspiration, explore our use cases and the step-by-step guide. You can also experience the layout's capabilities firsthand in the Circular Layout Demo.

Related content

Got questions about
the circular layout?

Email: hello@yworks.com
Phone: +49 7071 9709050

Get in touch

Start building your first
circular diagramming application!

Download yFiles for free!

Choose your next steps

Get connected

Connect with our Customer Success Team regarding your ideas or projects.

Connect with the real graph drawing experts.

Dive deep

Get more detailed information about specific yFiles topics.

Download yFiles

Try yFiles free of charge.

Download the yFiles trial version.