Welcome to scalax.collection.Graph

Graph for Scala provides basic graph functionality that seamlessly fits into the Scala standard collections library. Like members of scala.collection, graph instances are in-memory containers that expose a rich, user-friendly interface.

Among others, Graph for Scala

  • allows node and edge labels to be of any type
  • provides a unified interface for any kind of graph including hypergraphs, mixed and multigraphs
  • represents edges by classes, either predefined at library-side or user-defined and
  • includes ready-to-go implementations of JSON-Import/Export and Dot-Export.

Backed by the Scala core team, Graph for Scala started in 2011 as an open source project in the EPFL Scala incubator space on Assembla. Since 2014 it is primarily hosted on Github. The library is licensed under the Apache 2.0 License.

Want to take it for a spin? Grab the latest release to get started, then visit the Core User Guide to learn more.

Please browse previous questions and post your own ones on the user list. For error reports and enhancement requests use Github Issues. Last, to improve this site check out scala-graph-site.