>>> from igraph import Graph >>> g = Graph.Ring(20) >>> mc = g.mincut() >>> print mc.value 2.0 >>> print min(map(len, mc)) 1 >>> mc.es["color"] = "red"
Hi Gabor,i'm not sure whether clusters() is my want.
i try to make it more clear:g1 and g2 are two connected graphs, and i also can put them together as G, which contains 2 disconnected components.in addition, in g1 and g2, several connecting components may be found by some functions.what i want is to return 2 but not more disconnected components.Gang------------------ 原始邮件 ------------------发件人: "Gábor Csár"<csardi...@gmail.com>;发送时间: 2013年6月21日(星期五) 中午1:25收件人: "Help for igraph users"<igrap...@nongnu.org>;主题: Re: [igraph] how to find disconnected componentsI am not sure that I get what you want, but isn't just clusters() what you are looking for? If not, then can you give an example?GaborOn Fri, Jun 21, 2013 at 1:22 AM, 四正(红砖) <sizhe...@qq.com> wrote:Hi all,for a disconnected graph, how to find all the disconnected components, pls?i checked the functions about components and blocks, but i'm afraid of returning connected components as well.Thanks.Gang
_______________________________________________
igraph-help mailing list
igrap...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________
igraph-help mailing list
igrap...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help
Hi,
Vertex IDs used to start at 0 (as described here: http://igraph.wikidot.com/r-traps ). In latest version (R igraph 0.6.5), I see them starting from 1 as shown in code below.
Could you please confirm if this change is intentional?
#Code
> g <- graph.atlas(1000)
> V(g)[0]
# Output in igraph_0.5.5-4
Vertex sequence:
[1] 0
# Output in igraph_0.6.5-1
Vertex sequence:
numeric(0)
I tried looking in the release notes but couldn’t find anything about this. If this change is not intentional, I would like to debug what is going on with my installation of the latest version.
Thanks,
Mani