Community Detection In Directed Networks And Its Application To Analysis Of Social Networks