Hello Members,
I am beginning to work with the JGrapht library. The following is described as the syntax for creating a weighted, directed graph:
SimpleDirectedWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleDirectedWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class);
What is the meaning of including " DefaultWeightedEdge.class" in the above line?
I will be grateful for any replies.
Thank you!
sciprog1