yFiles for Java

yFiles for Java is an extensive Java™ class library for the Java Swing world that provides algorithms and components enabling the analysis, visualization, and the automatic layout of graphs, diagrams, and networks.

The 2.x line of yFiles for Java supports Java 7 and earlier. If your Java Swing project requires Java 8, we recommend the next-generation yFiles for Java.

Looking for a JavaFX™ diagramming library instead? Choose yFiles for JavaFX!

yFiles for Java 2.17 is the newest version of the 2.x line. Please refer to the release notes to learn more about the technical requirements and feature enhancements of this version.

Next-generation yFiles for Java

Java 8
or higher

Beginning with version 3.0, the yFiles for Java diagramming library features a brand-new, modern API which requires Java 8. This API is mature and provides many new features that are not available out-of-the-box in the 2.x line.

We recommend to start development with the next-generation yFiles for Java in new Java Swing projects.
Especially in projects that don't need to support legacy Java versions before Java 8, this is the recommended way to realize your application's diagram visualization part.

Application Demos

yEd diagram editor

yEd diagram editor

Try out our free yFiles-based graph editor, yEd, to get a broad overview of yFiles for Java library features.

yFiles gallery

yFiles gallery

Visit our gallery to see a variety of diagrams made with yFiles.

Demo highlights

Demo highlights

Browse the yFiles for Java demo highlights or play with the layout styles in our demo applications.

The Many Benefits...

yFiles for Java provides you with the essential building blocks for writing Java applications that analyze, visualize, edit, or automatically draw graphs, diagrams, or networks.

If you need diagramming components, you need yFiles!

Total flexibility is one of the main advantages of choosing yFiles. Our many customers come from diverse application areas including:

  • biochemical network analysis and visualization
  • business process modeling
  • data mining (e.g. log file analysis)
  • database management and modeling
  • network management
  • social networks
  • software engineering (e.g. UML diagramming)
  • workflow management (e.g. flow chart generation)
  • WWW visualization
  • visual programming

Outstanding Features

The yFiles for Java library enables you to create impressive cross-platform Java diagramming applications. It features all essential functionality from the yFiles product family.

yFiles for Java functionality is divided into three parts - Basic, Layout, and Viewer component.

Learn more about the yFiles for Java product types, all available combinations of Basic, Layout, and Viewer components.


The Basic component contains essential classes and data types for graph analysis. From highly efficient implementations of Graph, Priority Queue, and other advanced data types, to a wide variety of graph and network algorithms, The Basic component provides an indispensable toolkit for a range of network analysis tasks.


The Layout component builds upon the Basic component to offer a perfect suite of graph layout algorithms. Diverse layout styles including hierarchic, orthogonal, and circular are provided as easy-to-integrate components that can be configured programmatically to suit most layout demands. Even incremental layout is made simple, and our edge routing algorithms make it easy to route edges into existing diagrams.


The Viewer component also builds upon the Basic component. It features the powerful graph viewer UI component showcased in the yEd graph editor, along with several other useful Swing-based GUI elements. The Viewer component also supports diverse graph and image file formats (GraphML, JPG, GIF) and has excellent printing capabilities.

Extension Packages

Additional functionality such as SVG output or PDF output (among others), and support for the Business Process Model and Notation (BPMN) is provided through diverse yFiles for Java extension packages.


Our Knowledge Base is an excellent resource for finding the answers to frequently asked questions.

Commercial Information

Learn more about the terms and conditions for the commercial or academic use of the yFiles for Java library:

Evaluate yFiles for Java

Test and experience the yFiles for Java diagramming library with a 60-day, fully functional evaluation version.

The evaluation package features:

  • unrestricted yFiles for Java functionality, including Basic, Layout, and Viewer component
  • source code: full source code of more than 100 tutorial demo applications
  • developer documentation: Developer's Guide and API documentation, IDE setup tips

Contact yWorks

The data you enter will only be used to contact you.
Learn about our privacy policy.

Thank you!
Your message has been sent.
We are sorry,
Your request could not be sent. Please reload the page and try again.
If the problem persists, please report the error to webmaster@yworks.com.