1) Are all functions written for R available for python? looking at the documentation it seems that R has more available functions
from igraph import *
g = Graph.Erdos_Renyi(n=300, m=250)
colors = ["lightgray", "cyan", "magenta", "yellow", "blue", "green", "red"]
for component in g.components():
color = colors[min(6, len(component)-1)]
for vidx in component: g.vs[vidx]["color"] = color
plot(g, layout="fr", vertex_label=None)
python firstplot.py
Traceback (most recent call last):
File "firstplot.py", line 9, in <module>
plot(g, layout="fr", vertex_label=None)
File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 738, in plot
result = Plot(target, bbox)
File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 222, in __init__
self._surface_was_created=not isinstance(target, cairo.Surface)
File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 51, in __getattr__
raise TypeError, "plotting not available"
TypeError: plotting not available
bobs-imac:exampleR roberto$
Do I need to install anything else?
Many Thanks
Bob