I am trying to learn how to use the JGrapht API and a sample program on the web has the following line on how to create a SimpleGraph:
SimpleGraph graph = new SimpleGraph<String, DefaultEdge>(DefaultEdge.class);
The above line is clear execpt for the "DefaultEdge.class" in the parenthesis. What's the significance of adding this line in a ".java" file. I have never seen that before. I will be grateful for any help.