[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Thoughts on consistency in functions
From: |
Magnus Torfason |
Subject: |
Re: [igraph] Thoughts on consistency in functions |
Date: |
Fri, 30 Oct 2009 16:07:59 -0400 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
> Magnus Torfason wrote:
>> get.vertices <- (graph, vs=V(graph), names=FALSE) {...}
Gábor Csárdi wrote:
What would get.vertices do?
get.vertices(g,V(g),FALSE) would return the same as as.vector(V(g))
get.vertices(g,V(g),TRUE) would return the same as V(g)$name
Like I said, the thoughts were on consistency (not on new
functionality). People will differ on the usefulness of that, but I
wanted to share my thoughts regardless (and without any hard feelings if
people disagree :-).
Best,
Magnus