igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Read in dataframe as graph, simplifying network while keep


From: Tamas Nepusz
Subject: Re: [igraph] Read in dataframe as graph, simplifying network while keep edge weights
Date: Tue, 7 May 2019 14:47:30 +0200

Hello,

simplify() has an argument named edge.attr.comb=... with which you can specify how the edge attributes should be combined when replacing multiple edges with a single one. Type "?attribute.combination" in R for more details.

T.


On Tue, 7 May 2019 at 13:01, Tao ZHAO <address@hidden> wrote:
Hi,

I have a dataframe with 8 columns, the first two columns creates the edgelist (source and target, undirected). The other columns are edge descriptions, which are important information for my following analysis.

My next step is to simplify the network and perform clustering.  However after simplify(network), I got a graph with only edgelist (2 columns).

I wonder is there an easier way within the package to attach the pairwise edge information to the simplified network. 
Or I have to write a script myself for the mapping.  It would be very helpful for my following analysis. 

Thank you very much! 


Tao Zhao - Postdoctoral fellow
Bioinformatics

VIB-UGent Center for Plant Systems Biology
Ghent University
Technologiepark-Zwijnaarde 71 - 9052 Ghent - Belgium
Tel. +32(0)9 331 38 23
www.psb.ugent.be

Genome editing, cutting-edge technology for a sustainable agriculture

_______________________________________________
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]