From: Alex M. <am...@di...> - 2012-10-17 02:20:20
|
I am new to jgrapht. If I create a custom Vertex class that is abstract and it has two sub classes, is there an easy way to get all the vertices of only one of the subclass types? For example, if my custom vertex type is MyGenericVertex, and one subclass is HumanVertex and the other is ComputerVertex. Is there a built in way to efficiently get all the HumanVertex objects? I tried searching the archives for an answer to this and didn't see one . The closest thing I found was this topic: http://sourceforge.net/mailarchive/message.php?msg_id=22046693 Do I have to maintain my own data structures, one for HumanVertex and one for ComputerVertex? Thanks, Alex |