igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Union, Intersection of two graphs keeping attributes


From: Tamás Nepusz
Subject: Re: [igraph] Union, Intersection of two graphs keeping attributes
Date: Fri, 17 May 2013 12:01:06 +0200

Dear Gabor,

There is no solution for your problem yet; the R interface contains a function 
named graph.union.by.name but there is no corresponding function in the Python 
interface. (The reason is that this is not implemented in C so each higher 
level layer has to provide its own solution). If you happen to come up with a 
self-contained function that performs this operation, feel free to put it 
online somewhere (e.g., gist.github.com) and I will be happy to merge it with 
the Python interface if it does not require too much extra work to integrate.

Cheers,
Tamas

On 17 May 2013, at 11:57, Gábor Tóth <address@hidden> wrote:

> Dear All,
> 
> I would need to see the union and possibly sometimes the intersection of two 
> graphs. I know that the intersection and union functions do not support the 
> keeping of attributes, and that is understandable especially because in the 
> two graphs the union of which I am trying to make, the indices do not 
> correspond. However, each vertex and edge has a unique id, an attribute that 
> I wish to use for the union operation. I started to write a script that 
> iterates through all vertices and edges, gets these unique ids, delete 
> duplicates and then builds a new graph out of it. I am wondering if there is 
> any other solution for this.
> 
> Thanks,
> 
> Gabor
> _______________________________________________
> 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]