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,
>
(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]]
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
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
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
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:
>>
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
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
, 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
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
10 matches
Mail list logo