Bug fixes to breadth first search and pagerank

We haven't done much with directed graphs.  The formula for pagerank would result in infinite values and bfs should check the indegree of the target.