I construct an Hyper graph using jung library
Hypergraph hypergraph = new SetHyperGraph<Vertex,HyperEdge>();
then I add all my vertex (image , tag , location)
hypergraph.addVertex()
ArrayList<Vertex> allVertex = hypergraph.getVertices;
Now I would to extract only image Vertex from my listallVertex
why this instruction is illegal?
ArrayList<ImageVertex> allImageList=allVertex.subList(0,j);
Does Anyone have another solution?