helper for shortest paths with default edge weights=1

Added a method that takes graph and source, and sets all edge weights to 1. (Purely a convenience method.)