See here for connected components:
https://igraph.org/python/doc/igraph.Graph-class.html#clusters

On Fri, 29 Mar 2019 at 18:02, Gokce Dilek <gokcedile...@gmail.com> wrote:

> Thank you for your reply! Also, how can we get the connected components of
> a graph? Should we do it with vertex clustering?
>
> On Fri, 29 Mar 2019 at 08:06, Tamas Nepusz <nta...@gmail.com> wrote:
>
>> How can we iterate through vertices, vertex attributes and attribute
>>>>> values, and same for the edges?
>>>>>
>>>> graph.vs["attr"] gives you the values of the "attr" vertex attribute
>> for all the vertices in a Python list. You can then iterate over it like
>> normal.
>> graph.es["attr"] is the same for edge attributes
>> g.vertex_attributes() gives you the list of all vertex attributes.
>> g.edge_attributes() gives you the list of all edge attributes.
>>
>> T.
>> _______________________________________________
>> 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
>
_______________________________________________
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to