Appendix I. Derivation of p 1-model for directed network.