
From:  Tamas Nepusz 
Subject:  Re: [igraph] creating a xy graph using plot() in python?? 
Date:  Mon, 03 Jan 2011 10:10:41 +0100 
Useragent:  Mozilla/5.0 (X11; U; Linux i686; enUS; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 
As I said, igraph does not draw "graphs" as in "charts", igraph draws "graphs" as in "2D drawings of abstract mathematical objects consisting of nodes connected by links". If you want to draw charts, you need another package for that in Pytho; e.g., Matplotlib (http://matplotlib.sf.net). You can calculate the *points* of the chart by igraph (if you want to plot something graphrelated), but you need Matplotlib to draw the chart.ok, I guess I asked the wrong question.1)How should I draw a normal graph having xaxis and yaxis using pyhton igraph. I have attached one graph, please see that.
2)If I want a list of the number of linkcuts in my graph, which function should I use.There is no function for that in igraph, especially because that number can be huge. For instance, consider a graph that consists of 2 100cliques, connected by two edges. Those two connected edges form a minimum cut, hence every cut that includes those two edges will also be a cut. You would have at least 2^(100*99) minimum cuts in that graph.
Also, what functions should I use to find the size of the largest component in my graph\Find the connected components using the .clusters() method. This returns a VertexClustering object, and you can use its sizes() method to find the sizes of all the clusters. If g is your graph, then it is g.clusters().sizes().
g.average_path_length(): http://packages.python.org/pythonigraph/igraph.GraphBaseclass.html#average_path_length, or to find the average geodesic length.
3)I have a txt file with some 10,000 nodes and I used the summary function on it, but it seems to take a lot of time to give the results.(In fact, it is still executing after an hour). Is there any other method so that I can get my results quickly. ( The methos works well for small files)The summary() function calculates the diameter of the graph (among other properties), which may of course take time for larger graphs. If you need only some of the information returned by summary() but not the diameter, you can call other igraph methods to find out what you want. E.g., g.vcount() gives the number of vertices, g.ecount() gives the number of edges, g.maxdegree() gives the maximum degree etc.
 T.
[Prev in Thread]  Current Thread  [Next in Thread] 