Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 667157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:53:51+00:00 2026-05-13T23:53:51+00:00

Is there a good library (or wrapper to Java library) for graphs, and/or graph

  • 0

Is there a good library (or wrapper to Java library) for graphs, and/or graph algorithms in scala?

This one seems to be quite dead. This is an example for the Dijkstra algorithm in scala, but I’m looking for a library a-la JGraphT.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:53:51+00:00Added an answer on May 13, 2026 at 11:53 pm

    We have developed a small graph library for the apparat project. You can take a look at it here. It is not purely functional and not a zipper graph but does a good job for us. You get also mutable and immutable graphs.

    Here is a simple example for graph creation:

    implicit val factory = DefaultEdge[String](_, _)
    val G = Graph(
      "Entry" -> "A",
      "A" -> "B",
      "B" -> "C",
      "B" -> "D",
      "D" -> "F",
      "F" -> "E",
      "E" -> "F",
      "E" -> "C",
      "C" -> "A",
      "C" -> "Exit")
    G.dotExport to Console.out
    

    Finding SCCs and subcomponents

    G.sccs foreach println
    G.sccs map { _.entry } foreach println
    G.sccs filter { _.canSearch } map { _.subcomponents } foreach { _ foreach println }
    

    Traversal

    for(x <- G.topsort) println(x)
    for(x <- G.dft(y)) println(x)
    

    The current drawback is that the library is supporting only invariant types and not feature complete for a whole graph library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good library to resize an image in .NET with good quality?
Is there a best one? Does it offer as much flexibility as the Google
Is there a list of Regex implementations on the web, showing their differences /
I'm surprised I couldn't find an answer to this anywhere. I'm writing a roguelike
I know, WinFax Pro is so 1998. (note: this is not WinFax.dll, which is
I have to parse some complex xml files inside my Android application. Is there
I'am going to have to interact with a SOAP web service, using a C++
at work we have been using JGroups and I have to say that I
I am attempting to build a small local-purpose 3d engine, which has to be
I have a vector with raw pointers (no, I cannot use smart pointers) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.