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 <tao.z...@psb.vib-ugent.be> 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
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to