Re: [R] SNA packages/network package

2006-11-24 Thread Seth Falcon
> Bagatti Davide wrote:
>> Hello everyone,
>>
>> I am an italian student who is working with packages SNA (social network
>> analysis) and network.
>> I ask  you if there is a simple way to write a R-script using these packages
>> to extract from an adjacency matrix the following things:
>>
>> -number of cliques which are in the network;
>> -number of k-cores (e.g. 3-cores, 4-cores);
>> -cycles (e.g. 3-cycles, 4-cycles)
>> -hub & authorities.

You might take a look at the 'graph' and 'RBGL' packages (both are
Bioconductor packages).  

There is a graphAM class that can be initialized with an adjacency
matrix.  Most functions in RBGL take either any graph instance or a
graphNEL.  So you might have (approx. and untested):

library(graph)
library(RBGL)
myAdjMat
g1 = new("graphAM", myAdjMat)
g2 = as(g1, "graphNEL")
## call some RBGL function on g2

+ seth

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] SNA packages/network package

2006-11-23 Thread Spencer Graves
  I haven't seen a reply to this post, so I will offer some comments 
even though I do not recall any previous exposure to social network 
analysis or the 'sna' package.  I'm sorry I can't answer your question 
directly.  However, if you wouldn't mind posting a minimal example of 
something you've tried and ask your question in terms of that example, 
you might get a better response.  Please try to make your example self 
contained in the sense that someone like me can copy it from your email, 
paste it into an R session, and presumably see what you see.  When I 
listed "objects(2)" with the 'sna' package in the second position on the 
search path, I got 201 different objects.  I didn't see an obvious entry 
point for the package. 

  Hope this helps. 
  Spencer Graves

Bagatti Davide wrote:
> Hello everyone,
>
> I am an italian student who is working with packages SNA (social network
> analysis) and network.
> I ask  you if there is a simple way to write a R-script using these packages
> to extract from an adjacency matrix the following things:
>
> -number of cliques which are in the network;
> -number of k-cores (e.g. 3-cores, 4-cores);
> -cycles (e.g. 3-cycles, 4-cycles)
> -hub & authorities.
>
> Thank-you very much
>
> Davide
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.