eclipse - Java Application Error Jung Library -
i trying run project in eclipse java application. error in 1 of class.
public static list<graph<integer, string>> graphlist = new arraylist<>(); // java 7 syntax public static graph<integer, string>[] graph = new graph[100]; // populate 'graph' public static graph<integer, string> g=new sparsemultigraph<integer,string>();
and error : exception in thread "awt-eventqueue-0" java.lang.error: unresolved compilation problems: type graph not generic; cannot parameterized arguments
i tried configuring path updating jre system library. using java.util.list too. can please throw light on how solve problem .
the graph interface needs vertex , edge types specified < v,e >.
public static graph g=new sparsemultigraph();
change above code this:
graph<integer, string> g = new sparsemultigraph<integer, string>();
refer link below example: http://www.grotto-networking.com/jung/basicgraphcreation.java
if still experience problem, refer thread below: the type collection not generic; cannot parameterized arguments <? extends e>
Comments
Post a Comment