Jadecy
Java lib to compute (code) deps, SCCs, and cycles (Johnson algorithm).
...Usage from command line is also possible but with reduced flexibility (cf. JadecyMain class).
API entry point for Java code dependencies is the Jadecy class, or DepUnit that makes use of it and is designed for unit tests.
API entry point for general graph computations is the net.jadecy.graph package.
Requires Java 5 or later.
Also available on github:
https://github.com/jeffhain/jadecy