can you provide an object-oriented code to implement the search for the shortest route in a graph consisting of nodes and edges between nodes? The words with all capital letters should appear at least 7 times.
user