Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
igraph and statnet
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Silvia Alvarez  
View profile  
 More options Nov 5 2012, 9:52 pm
From: Silvia Alvarez <silvit...@gmail.com>
Date: Mon, 5 Nov 2012 21:49:53 -0500
Local: Mon, Nov 5 2012 9:49 pm
Subject: [igraph] igraph and statnet

Hi everybody,

In a students seminar we tried to calculate basic network metrics using the
igraph library. I also called the statnet library but used igraph functions
for the estimations. When comparing my output with that of my class mates
who didn't call statnet, the values were different. I didn't get any
warning or error but the values were wrong. I tried to solve this by
removing the statnet library (I actually delete it completely from my
computer) but I kept getting the same wrong values. I tried it in other
computers and I got the same wrong values. Has anyone had similar issues
when using igraph and statnet? Is there an explanation for this? Any ideas
on how to solve it? I am new to igraph and other network packages, so I am
not sure if this has been discussed before, but I haven't been able to find
anything yet.

Best wishes,

Silvia

--
Silvia J. Alvarez
PhD Student, Biological Sciences
Behavior, Ecology, Evolution and Systematics (BEES)
University of Maryland
College Park, MD 20742
Email: salva...@umd.edu
www.clfs.umd.edu/biology/faganlab/people/alvarez.html

_______________________________________________
igraph-help mailing list
igraph-h...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gábor Csárdi  
View profile  
 More options Nov 5 2012, 9:56 pm
From: Gábor Csárdi <csa...@rmki.kfki.hu>
Date: Mon, 5 Nov 2012 21:56:06 -0500
Local: Mon, Nov 5 2012 9:56 pm
Subject: Re: [igraph] igraph and statnet

Well, you will need to tell us more about these wrong results, otherwise we
cannot help you.

What exactly did you do? What are the wrong results you are getting?

Ideally you should give us a small piece of R code that we can run and the
reproduces your problem.

Gabor

--
Gabor Csardi <csa...@rmki.kfki.hu>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
igraph-h...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Silvia Alvarez  
View profile  
 More options Nov 6 2012, 9:38 am
From: Silvia Alvarez <silvit...@gmail.com>
Date: Tue, 6 Nov 2012 09:30:56 -0500
Local: Tues, Nov 6 2012 9:30 am
Subject: Re: [igraph] igraph and statnet

Hi Gabor,

Thank you for the quick response. Here's the code:

library(igraph)
library(statnet)

##upload datase horse
horse<-read.csv("Horse.csv", header=T, row.names=1, check.names=F)
horse<-as.matrix(horse)
horse[6,2]=3
horse

##create adjacency matrix
hgraph<-igraph::graph.adjacency(horse, mode="undirected", weighted=NULL)
hgraph
igraph::degree(hgraph)
igraph::betweenness(hgraph, v=V(hgraph))

####End

The output I get is:

> igraph::degree(hgraph)[1] 37 25 11 41 36 12 18 27 13> igraph::betweenness(hgraph, v=V(hgraph))[1] 0.8144796 0.4841629 0.0000000 0.7533937 0.6968326 0.0000000 0.0000000 0.2511312 0.0000000

Thank you,

Silvia

2012/11/5 Gábor Csárdi <csa...@rmki.kfki.hu>

--
Silvia J. Alvarez
PhD Student, Biological Sciences
Behavior, Ecology, Evolution and Systematics (BEES)
University of Maryland
College Park, MD 20742
Email: salva...@umd.edu
www.clfs.umd.edu/biology/faganlab/people/alvarez.html

_______________________________________________
igraph-help mailing list
igraph-h...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gábor Csárdi  
View profile  
 More options Nov 6 2012, 10:34 am
From: Gábor Csárdi <csa...@rmki.kfki.hu>
Date: Tue, 6 Nov 2012 10:34:29 -0500
Local: Tues, Nov 6 2012 10:34 am
Subject: Re: [igraph] igraph and statnet

Hi Silvia,

the thing is, I still cannot run this code, because I don't have
"Horse.csv". Also, you did not say why do you think the output is bad, and
what do you think would be the correct output. For the graphs I have tried
igraph and statnet give the same results for degree() and betweenness().

Please also include the output of the sessionInfo() function, because
statnet and sna only recently have a namespace, and it matters which
version you use.

Thanks, Gabor

--
Gabor Csardi <csa...@rmki.kfki.hu>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
igraph-h...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »