graph

graph / Distance / 0.1.0

README.md
Returns the distance between two vertices in a directed graph.

Input:
  • A graph represented as a map from vertices (strings) to a list of neighbors (list of strings).
  • The start vertex (string)
  • The goal vertex (string)