Hi gabor, Thank you for response. I have worked with it but it is just giving a vector. But i want i want the matrix which display the shortest path sequences. Like if there are two nodes A and B and the shortest path between them is A C B. Then i want the matrix of displaying shortest path as a single matrix element with A C B. Is there any way to do this..??
On Sun, Jul 5, 2015 at 6:57 PM, Gábor Csárdi <[email protected]> wrote: > You can convert an igraph.vs to vertex names with `as_ids`, and vertex ids > with `as.vector`. > > Gabor > > On Sun, Jul 5, 2015 at 3:22 PM, seema aswani <[email protected]> > wrote: > >> Hi , >> Thanks for the response. >> I don't want the matrix of shortest path lengths i want the matrix which >> display the shortest path sequences. Like if there are two nodes A and B >> and the shortest path between them is A C B. Then i want the matrix of >> displaying shortest path as a single matrix element with A C B. Is there >> any way to do this..?? >> >> On Sun, Jul 5, 2015 at 6:45 PM, Chris Watson <[email protected]> wrote: >> >>> Are you using the 'shortest.paths' function? It returns a matrix >>> >>> On Sun, Jul 5, 2015 at 7:25 AM, seema aswani <[email protected]> >>> wrote: >>> >>>> Hi , >>>> I am using igraph package for finding shortest paths between two nodes >>>> of graph. As my dataset is having biological information about Protein >>>> Protein Interaction. The names are of type string and those are the names >>>> of proteins. I have names of 11 proteins and i found the shortest path >>>> between all those 11 proteins pairwise. As a result of for loop i am >>>> getting the list of shortest paths and the vertex sequences as a class >>>> igraph.vs. I want to display this result in matrix of 11*11. How can i do >>>> this ?? Can any one help ?? >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> igraph-help mailing list >>>> [email protected] >>>> https://lists.nongnu.org/mailman/listinfo/igraph-help >>>> >>>> >>> >>> _______________________________________________ >>> igraph-help mailing list >>> [email protected] >>> https://lists.nongnu.org/mailman/listinfo/igraph-help >>> >>> >> >> _______________________________________________ >> igraph-help mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/igraph-help >> >> > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
