Add support for graphs with vertices of 0 outdegree