Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementation of Johnson's algorithm to find elementary circuits (cycles) in a graph

Does anyone have source code implementing this algorithm for finding cycles, preferably in a modern statically-typed language like SML, OCaml, Haskell, F#, Scala?

like image 264
J D Avatar asked Oct 25 '25 05:10

J D


1 Answers

The following is a Java implementation of the algorithm you need: https://github.com/1123/johnson. Java running on the JVM, you can also use it from Scala.

like image 95
user152468 Avatar answered Oct 26 '25 21:10

user152468