MAINT: precompute directed edge list