To the myGraph class add a method called
listTriangles.
This method takes no parameters and returns a collection of all
triangles in the graph.
A triangle is a set of three distinct vertices x, y, and z such
that {x, y}, {y, z}, and {x, z} are all edges in the graph.
The collection should be returned in a 2-dimensional array.
The number of rows in the array should be exactly equal to the number of
triangles found in the graph.
The array should have three columns.
Thus, each triangle can be stored in the three slots in a row.
Each slot of the array should be of type String so as to
store the name of a vertex.
What to submit: Use the submit tool to electronically
submit a single java file: myGraph.java.
Here are instructions for using the
submit tool.