yes, you'll have to maintain your own data structure(s).
Information System on Graph Classes and their Inclusions (ISGCI) http://www.graphclasses.org
----- Reply message -----
From: "Alex Moir" <amoir@...>
Subject: [jgrapht-users] get all vertices of a certain type
Date: Wed, Oct 17, 2012 04:03
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