Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Degree distribution of network' topicStudent Support Forum > General > Archives > "Degree distribution of network"

Next Comment >Help | Reply To Topic
Author Comment/Response
Graton Gathright
09/13/07 09:04am

I do not seem to get the correct degree distribution for my graph create using FromUnorderedPairs and the attached file.

In particular, how could there be any nodes with degree zero? More generally, the distribution is not the same as what I get when I calculate the distribution by hand (meaning with Perl).

I presume there is something wrong with how I am building the graph, but I have not been able to figure out the problem.

Here is what I am running:

<< Combinatorica`
l = Import["/home/ggathrig/orderedpairs.csv"];
g = FromUnorderedPairs[l];
M[g];
Degrees[g]


Many thanks.

Attachment: orderedpairs.csv, URL: ,

Subject (listing for 'Degree distribution of network')
Author Date Posted
Degree distribution of network Graton Gathr... 09/13/07 09:04am
Re: Degree distribution of network yehuda ben-s... 09/13/07 2:22pm
Re: Re: Degree distribution of network Graton Gathr... 09/14/07 08:11am
Next Comment >Help | Reply To Topic