Java code for fast read int and double.
Tarjan's SCC algorithm.