Re: [jgrapht-users] Gaining access to verticies in an edge
Brought to you by:
barak_naveh,
perfecthash
From: John V. S. <js...@gm...> - 2010-03-21 07:43:20
|
http://www.jgrapht.org/javadoc/org/jgrapht/Graphs.html#neighborListOf(org.jgrapht.Graph,%20V) http://www.jgrapht.org/javadoc/org/jgrapht/alg/NeighborIndex.html JVS blaze999 wrote: > Hi, > > I am working on a program to calculate the google normalised distance for > verticies in a graph. > I was just wondering in JgraphT if you have an edge is there anyway to get > the list of neighbours for each of the nodes that make up the edge > > e.g E=(2,3) > > i need to get the list of neighbours for nodes 2 and 3. Also I need the > neighbours that belong to both nodes 2 and 3. Is there any method in JgraphT > that does that > > Kind Regards |