Extract function that calculates grayscale value
What even is that :|
Rename followVertex to findNextVertex to be descriptive
Simp

- Return early if vertex is undefined
Simplify #contains and #find in Path class