Unable to generate plots (Sphere)
/usr/lib/python2.6/dist-packages/graph_tool/draw/__init__.pyc in graph_draw(g, pos, size, pin, layout, maxiter, ratio, overlap, sep, splines, vsize, penwidth, elen, gprops, vprops, eprops, vcolor, ecolor, vcmap, vnorm, ecmap, enorm, vorder, eorder, output, output_format, returngv, fork, return_bitmap, seed)
449 p = gv.getv(n_gv, "pos")
450 p = p.split(",")
--> 451 pos[0][n] = float(p[0])
452 pos[1][n] = float(p[1])
453
ValueError: empty string for float()
I am always getting the error above, when I try to execute the commands as below
#!python
from numpy.random import random, seed
from pylab import *
import graph_tool.all as gt
seed(43)
g, pos = gt.triangulation(random((1000,2)))
gt.graph_draw(g, layout="arf", output="rewire_orig.pdf", size=(6,6))
Please let me know if the above code snippet provided on your website is correct or not, as I have not been able to generate any graphs using graph-tool successfully till now.