# Examples for igraph-python module

**URL:** <https://igraph.discourse.group/t/examples-for-igraph-python-module/1057>\
**Category:** Usage\
**Tags:** Python\
**Created:** [11 January 2022 10:36 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057 "2022-01-11T10:36:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedram.jazayeri](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@pedram.jazayeri](https://igraph.discourse.group/u/pedram.jazayeri)\
**Post date:** [11 January 2022 10:36 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/1 "2022-01-11T10:36:57Z")

</div>

Hi,  
Is there any source or websites to learn the igraph-python commands in examples more practically?  
thanks.

---

<div class="post-metadata">

**Author:** ![vtraag](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/vtraag/32/38_2.png) [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Post date:** [11 January 2022 11:05 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/2 "2022-01-11T11:05:00Z")

</div>

The general documentation of the Python interface of `igraph` can be found here: [python-igraph](https://igraph.org/python/#docs). This includes a tutorial, a user guide and the full reference of all functionality. Some of the material is still under development, but it should make for a good start. If there’s anything that you miss, feel free to report back here.

---

<div class="post-metadata">

**Author:** ![pedram.jazayeri](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@pedram.jazayeri](https://igraph.discourse.group/u/pedram.jazayeri)\
**Post date:** [11 January 2022 11:07 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/3 "2022-01-11T11:07:09Z")

</div>

> [@vtraag](#):
>
> l free t

I visited those pages but I want some written examples with igraph not just the commands and descrptions.

---

<div class="post-metadata">

**Author:** ![vtraag](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/vtraag/32/38_2.png) [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Post date:** [11 January 2022 11:10 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/4 "2022-01-11T11:10:00Z")

</div>

Sorry, I’m not sure I understand. There are concrete example codes included in the tutorial for example: [Tutorial](https://igraph.org/python/tutorial/latest/tutorial.html). If this does not suit your needs, could you explain what you mean by “written example”?

---

<div class="post-metadata">

**Author:** ![pedram.jazayeri](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@pedram.jazayeri](https://igraph.discourse.group/u/pedram.jazayeri)\
**Post date:** [11 January 2022 11:18 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/6 "2022-01-11T11:18:04Z")

</div>

I want to import a graph into the igraph module then, I need to divide the graph into some graphs with different algorithms and methods such as Girvan Newman algorithms and other methods.  
First question is that can I divide the graph via these algorithms?  
The second is I need so examples to read and use in my code.  
Thanks

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [11 January 2022 11:59 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/7 "2022-01-11T11:59:44Z")

</div>

The under-development tutorials have some examples for community detection:

> **[python-igraph/doc/source/tutorials at develop · igraph/python-igraph](https://github.com/igraph/python-igraph/tree/develop/doc/source/tutorials)**
>
> develop/doc/source/tutorials

See e.g. `visualize_communities`. These tutorials are written for the development version (to become 0.10), so some minor modifications may be needed to make them work with the released 0.9.

You will also find countless examples through Google, including YouTube videos: [python igraph community detection - Google Search](https://www.google.com/search?q=python+igraph+community+detection)

---

<div class="post-metadata">

**Author:** ![pedram.jazayeri](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@pedram.jazayeri](https://igraph.discourse.group/u/pedram.jazayeri)\
**Post date:** [15 January 2022 04:23 UTC](https://igraph.discourse.group/t/examples-for-igraph-python-module/1057/8 "2022-01-15T04:23:05Z")

</div>

Thank you @szhorvat .
