[Top][All Lists]

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

Re: [igraph] Extracting sub-graph

From: Håvard Wahl Kongsgård
Subject: Re: [igraph] Extracting sub-graph
Date: Wed, 12 Oct 2011 14:04:06 +0200

decompose() seems to work for that purpose, but not on directed graphs.

    aa = i.decompose()
igraph._igraph.InternalError: Error at components.c:463: only
'IGRAPH_WEAK' is implemented, Invalid value
Note: unable to select mode='WEAK' with decompose(), is this a bug?

is the best solution simply to convert the graph to a undirected
graph, and then rebuild the extracted subgraph using the nodes values
using subgraph()?


2011/10/12 Håvard Wahl Kongsgård <address@hidden>:
> Hi, I have a large graph which is made up of multiple non-connected
> sub-graphs. I aware of the community and cluster methods. But with the
> python interface how do I simply extract a specific sub-graph, for
> example the sub-graph of vertex x? Or should I use the
> community/cluster methods for that.
> --
> Håvard Wahl Kongsgård
> NTNU - Department of medicine

reply via email to

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