Error: Cannot find an overload for 'contains' that accepts an argument type in while loop Why am I getting this error: Cannot find an overload for 'contains' that accepts an argument type '[Vetex], Vertex' Your Vertex class should confirm to Equatable protocol. This is a good tutorial ...