Added node type identifiers for digraphs
Methods for finding different kinds of nodes in digraphs.