igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Importing weighted edgelist in R for network analysis


From: Gábor Csárdi
Subject: Re: [igraph] Importing weighted edgelist in R for network analysis
Date: Mon, 14 Jul 2014 10:58:38 -0400

> el <- read.csv("data.csv")
> g <- graph.data.frame(el)
> E(g)$weight <- 1
> g2 <- simplify(g)
> str(g2, e=TRUE)
IGRAPH DNW- 10 7 --
+ attr: name (v/c), weight (e/n)
+ edges (vertex names) and their attributes:
    edge weight
[1] A->D      1
[2] B->E      2
[3] B->F      1
[4] B->G      1
[5] B->H      1
[6] B->I      1
[7] C->J      2

Gabor

On Mon, Jul 14, 2014 at 10:48 AM, Bishwarup Paul <address@hidden> wrote:
> Hi,
>
> I have a directed edgelist (attached with this mail) which I would like to
> import in R to calculate network parameters like density, centrality and
> centralization scores. The first column of the edgelist has the person
> sending a message and the second column is the reciever. The edgelist has
> repeats of some of the same sender-reciever pair, i.e. it is weighted. Can
> you please suggest how to correctly import it into R? I would really
> appreciate if you can reply at your earliest.
>
> Thanking you,
> Bishwarup Paul
>
>
> BISHWARUP PAUL
> c/o Dr. Sumana Annagiri
> Integrated PhD student
> Behaviour & Ecology Lab
> Dept. of Biological Sciences
> IISER-Kolkata
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]