Directed Graph vertex numbering and edge types