Epidemics have so far been mostly studied in undirected networks. However, many real-world networks, such as the online social network Twitter and the world wide web, on which information, emotion, or malware spreads, are directed networks, composed of both unidirectional links and bidirectional links. We define the directionality ξ as the percentage of unidirectional links. The epidemic threshold τ c for the susceptible-infected-susceptible (SIS) epidemic is lower bounded by 1/λ 1 in directed networks, where λ 1 , also called the spectral radius, is the largest eigenvalue of the adjacency matrix. In this work, we propose two algorithms to generate directed networks with a given directionality ξ . The effect of ξ on the spectral radius λ 1 , principal eigenvector x 1 , spectral gap (λ 1 − |λ 2 |), and algebraic connectivity μ N−1 is studied. Important findings are that the spectral radius λ 1 decreases with the directionality ξ , whereas the spectral gap and the algebraic connectivity increase with the directionality ξ . The extent of the decrease of the spectral radius depends on both the degree distribution and the degree-degree correlation ρ D . Hence, in directed networks, the epidemic threshold is larger and a random walk converges to its steady state faster than that in undirected networks with the same degree distribution.