# How to use igraph\_barabasi\_game() from phyton-igraph in Google Colab

**URL:** <https://igraph.discourse.group/t/how-to-use-igraph-barabasi-game-from-phyton-igraph-in-google-colab/520>\
**Category:** Usage\
**Tags:** Python\
**Created:** [19 November 2020 21:33 UTC](https://igraph.discourse.group/t/how-to-use-igraph-barabasi-game-from-phyton-igraph-in-google-colab/520 "2020-11-19T21:33:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natalie\_von\_Paraski](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/natalie_von_paraski/32/402_2.png) [@Natalie\_von\_Paraski](https://igraph.discourse.group/u/Natalie_von_Paraski)\
**Post date:** [19 November 2020 21:33 UTC](https://igraph.discourse.group/t/how-to-use-igraph-barabasi-game-from-phyton-igraph-in-google-colab/520/1 "2020-11-19T21:33:40Z")

</div>

Hi!  
I need to use the method igraph\_barabasi\_game() from phyton-igraph library in the google colab notebook , but i can’t find there.

I’d already install the phyton-igraph using this line:

!pip install python-igraph

and import igraph class (I believe that is a class…) using this line:

import igraph as ig

but when I try to find the igraph\_barabasi\_game, I don’t find anything…

I tried to write :

ig.Graph.

and

ig.

but no method with the name appears to me in the notebook.  
I’m new using phyton and google colab and Igraph, so I need some help with this beggining…  
Thank’s

---

<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:** [19 November 2020 22:13 UTC](https://igraph.discourse.group/t/how-to-use-igraph-barabasi-game-from-phyton-igraph-in-google-colab/520/2 "2020-11-19T22:13:05Z")

</div>

That function belongs to the C interface of igraph.

Since you are using igraph from Python, look the documentation of the Python interface: [https://igraph.org/python/doc/igraph.GraphBase-class.html#Barabasi](https://igraph.org/python/doc/igraph.GraphBase-class.html#Barabasi)
