igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] intersect graphs sharing a percentage of edges and vertices


From: Tamás Nepusz
Subject: Re: [igraph] intersect graphs sharing a percentage of edges and vertices
Date: Wed, 3 Sep 2014 17:52:24 +0200

You can extract the node names first ( V(g1)$name and so on, possibly in a loop), use standard R functions to find those nodes that you want to keep, then extract the subgraphs corresponding to these nodes from each graph with induced.subgraph(), and finally, take the intersection of the subgraphs.

T. 

On 3 Sep 2014, at 16:24, jfertaj <address@hidden> wrote:

Dear list,

 have a list of graphs (igraph format) and I would like to obtain a merge graph, which would be the intersection of those nodes and vertices that are shared a certain percentage trough all the graphs.

I know that igraph library has the function graph.intersection() but this function intersect all the vertices and nodes present in all the graphs.

Any help would be much appreciated

Juan

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