Re: [R] Subgraph isomorphism using vertex labels

2012-08-01 Thread HIMANSHU MITTAL
) can be converted to vertex names via V(g)$name[v] or the more readable equivalent get.vertex.attribute(g, name, v) Best, Gabor On Tue, Jul 31, 2012 at 3:12 PM, HIMANSHU MITTAL hm3...@gmail.com wrote: Hi all, I want to find all the mappings of one graph in another graph, based

[R] Subgraph isomorphism using vertex labels

2012-07-31 Thread HIMANSHU MITTAL
(1) z(5) x(2) graph 2: x(1) y(2) # the brackets contain the corresponding vertex ids i would like my output to contain the two mappings from graph 1 i.e x(2) y(3) x(1) y(4) Regards, Himanshu Mittal [[alternative HTML version deleted]] __ R

Re: [R] graph from txt file

2012-07-01 Thread HIMANSHU MITTAL
Thanks a ton Regards Himanshu Mittal On Sat, Jun 30, 2012 at 11:42 PM, Rui Barradas ruipbarra...@sapo.pt wrote: Hello, The answer to the question is yes. But first a note. Your vertex ids start at 51 and the greater is 173. igraph vertices (and edges) are automatically numbered starting

Re: [R] graph from txt file

2012-06-30 Thread HIMANSHU MITTAL
(**315522000, 6), origin=1970-01-01)) V(g)$date Rui Barradas Em 30-06-2012 04:26, HIMANSHU MITTAL escreveu: Thanks a lot. But i have one more doubt one of the attribute i have is time of edge formation id1,id2,label,time 51,66,0,315522000 51,66,0,315522000 140,157,0,315522000

[R] graph from txt file

2012-06-29 Thread HIMANSHU MITTAL
Hi all, I have a text file in which the graph info is stored as: node1 node2 attr1 attr2 where there is an edge b/w node12 and attr12 are edge atttributes is there any way to create a graph using such format in r? Regards, Himanshu Mittal [[alternative HTML version deleted

Re: [R] graph from txt file

2012-06-29 Thread HIMANSHU MITTAL
yes i would prefer igraph, but it can be any r package as long as it can create the graph On Fri, Jun 29, 2012 at 11:14 PM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-06-29 10:28, HIMANSHU MITTAL wrote: Hi all, I have a text file in which the graph info is stored as: node1 node2 attr1

Re: [R] graph from txt file

2012-06-29 Thread HIMANSHU MITTAL
above would do. Hope this helps, Rui Barradas Em 29-06-2012 19:05, HIMANSHU MITTAL escreveu: yes i would prefer igraph, but it can be any r package as long as it can create the graph On Fri, Jun 29, 2012 at 11:14 PM, Peter Ehlers ehl...@ucalgary.ca wrote: On 2012-06-29 10:28

[R] File Handling in R

2012-06-28 Thread HIMANSHU MITTAL
Hello all, I have a txt file with some data which isn't in any organized form like a table, but just simple text. Is there any way to read the file char by char and store the necessary characters? Regards, Himanshu Mittal [[alternative HTML version deleted

[R] Compare two matrices in r

2012-06-12 Thread HIMANSHU MITTAL
Dear all, I want to compare two matrices . the code must return True only when all the elements of the two matices match. How can this be done in R ? Regards [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Compare two matrices in r

2012-06-12 Thread HIMANSHU MITTAL
Hope this helps, Rui Barradas Em 12-06-2012 08:52, HIMANSHU MITTAL escreveu: Dear all, I want to compare two matrices . the code must return True only when all the elements of the two matices match. How can this be done in R ? Regards [[alternative HTML version deleted