Re: [jgrapht-users] DefaultEdge vs Void
Brought to you by:
barak_naveh,
perfecthash
From: Dimitrios M. <dim...@gm...> - 2018-01-06 17:56:12
|
Not really. Void is just a placeholder type which cannot be instantiated. The type you provide for the edges must be a class that can be instantiated. Read about Java Generics in order to understand its purpose ( https://docs.oracle.com/javase/tutorial/java/generics/index.html). There are plenty of examples of graph instantiations in the JGraphT test cases. --Dimitrios On Sat, Jan 6, 2018 at 4:14 PM, Victor Porton <po...@na...> wrote: > What is the difference between Graph<T,DefaultEdge> and Graph<T,Void>? > > Does the second work? > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |