Computing algebraic connectivities of directed graphs