Re: [jgrapht-users] graph cell Getchildren question
Brought to you by:
barak_naveh,
perfecthash
From: John V. S. <js...@gm...> - 2010-02-24 20:31:28
|
Vanessa Ruiz wrote: > // I tried each of the following functions to get > the childcount, to not avail > // can you help me fix it, please? > > size=cell.getChildCount(); > size=jgraph.getModel().getChildCount(nn); > size=m.getChildCount(cell); cell.getChildren().size()? http://www.jgraph.com/doc/jgraph/org/jgraph/graph/DefaultGraphCell.html It seems like you should also be able to use the JGraphT method DirectedGraph.outDegreeOf(v), but for that you'd need to be able to map from cell to vertex, and currently this map is private inside of JGraphModelAdapter. Seems like we need to add a public accessor which is the inverse of getVertexCell, but maybe there is already some other way to do the same thing? I don't know JGraph very well, only JGraphT. JVS |