1000 nodes barabasi albert graph with m0=10,m=2.

372 views
Skip to first unread message

franck kalala

unread,
Nov 26, 2009, 10:15:08 AM11/26/09
to networkx...@googlegroups.com
Hi All,

Ho to create a 1000 nodes barabasi albert graph with m0=10,m=2.

cheers

Sudarshan Iyengar

unread,
Nov 26, 2009, 10:32:23 AM11/26/09
to networkx...@googlegroups.com
import networkx as nx
G=nx.barabasi_albert_graph(1000,3) #k=3
not sure what u mean by m0 and m.
any reference!?
> --
>
> You received this message because you are subscribed to the Google Groups
> "networkx-discuss" group.
> To post to this group, send email to networkx...@googlegroups.com.
> To unsubscribe from this group, send email to
> networkx-discu...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/networkx-discuss?hl=en.
>

franck kalala

unread,
Nov 26, 2009, 10:43:08 AM11/26/09
to networkx...@googlegroups.com
Sudarshan there reference is here

http://networkx.lanl.gov/reference/generated/networkx.barabasi_albert_graph.html#networkx.barabasi_albert_graph

I don`t know which command to use. Because we have m0 and m. Actually  we have three parameters according to the link above. n,m and m0(initialization). I tryed already what you suggest me but I don`t get what   I am expecting to find.

Cheers

2009/11/26 Sudarshan Iyengar <sudars...@gmail.com>



--
***********************************************
***********************************************
Franck Kalala Mutombo
fra...@aims.ac.za
African Institut for Mathematical Sciences, Muizenberg Cape Town, South Africa
franck....@unilu.ac.cd
************************************************
************************************************

Sudarshan Iyengar

unread,
Nov 26, 2009, 10:53:47 AM11/26/09
to networkx...@googlegroups.com
The link that you sent very clearly explains the function.

barabasi_albert_graph(n,k) will create a graph with n nodes based on what k is.

To illustrate:

>>>G=nx.barabasi_albert_graph(50,3)#we can omit the seed

Willl give you a scale free network(barabasi_albert_graph) with 50
nodes where each node is connected to three vertices(k=3) with
probability proportional to the degree of the vertex.

http://en.wikipedia.org/wiki/Barab%C3%A1si%E2%80%93Albert_model has an
animation which explains it better, in the animation k is 2

sudarshan

franck kalala

unread,
Nov 26, 2009, 11:29:43 AM11/26/09
to networkx...@googlegroups.com
Thanks Sudarshan.


De : Sudarshan Iyengar <sudars...@gmail.com>
À : networkx...@googlegroups.com
Envoyé le : Jeu 26 Novembre 2009, 15 h 53 min 47 s
Objet : Re: [networkx-discuss] 1000 nodes barabasi albert graph with m0=10,m=2.
>> > networkx-discuss+unsub...@googlegroups.com.

>> > For more options, visit this group at
>> > http://groups.google.com/group/networkx-discuss?hl=en.
>> >
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "networkx-discuss" group.
>> To post to this group, send email to networkx...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> networkx-discuss+unsub...@googlegroups.com.

>> For more options, visit this group at
>> http://groups.google.com/group/networkx-discuss?hl=en.
>>
>>
>
>
>
> --
> ***********************************************
> ***********************************************
> Franck Kalala Mutombo
> fra...@aims.ac.za
> African Institut for Mathematical Sciences, Muizenberg Cape Town, South
> Africa
> franck....@unilu.ac.cd
> ************************************************
> ************************************************
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "networkx-discuss" group.
> To post to this group, send email to networkx...@googlegroups.com.
> To unsubscribe from this group, send email to
> networkx-discuss+unsub...@googlegroups.com.

> For more options, visit this group at
> http://groups.google.com/group/networkx-discuss?hl=en.
>

--

You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages