Re: [R] Subgraph isomorphism using vertex labels

2012-08-01 Thread HIMANSHU MITTAL
x ids (v, from graph g) 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 wrote: > > Hi all, >

[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]]

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 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
rep(**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 >> >> i

Re: [R] graph from txt file

2012-06-29 Thread HIMANSHU MITTAL
u should post data examples like the posting guide says. > With your description, a small example like the one 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 pac

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 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: >>

[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 node1&2 and attr1&2 are edge atttributes is there any way to create a graph using such format in r? Regards, Himanshu Mittal [[alternative HTML version

[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 de

Re: [R] Compare two matrices in r

2012-06-12 Thread HIMANSHU MITTAL
, y) >is.matrix(x) && is.matrix(y) && dim(x) == dim(y) && all(x == y) > > matequal(a, b) # FALSE > matequal(d, b) # TRUE > > > Hope this helps, > > Rui Barradas > > Em 12-06-2012 08:52, HIMANSHU MITTAL escreveu: > >> Dea

[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 https://sta