Two-way Node Popularity Model for Directed and Bipartite Networks (Journal of Machine Learning Research (JMLR), 2026)