In your comment above you called `moduleIndex` 'dependency index'.  I like the latter but at least be consistent.