Spectral method with fine tuning as published by Newman in 2006
M. E. J. Newman. Modularity and community structure in networks PNAS, 103(23):8577–8582, 2006.
Fully tested on undirected networks, not fully tested but should be ok on directed networks.