Hi guys,

When I try to compute the lovasz theta number of some graph, it says that 

*ValueError: could not convert string to float: failed.:*G = 
graphs.CycleGraph(7)
V = Set(G.vertices())
L = []
for s in V.subsets():
  L.append(G.subgraph(s))

L[68].lovasz_theta()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-53-0ad2fb49c2b1> in <module>()
----> 1 L[Integer(68)].lovasz_theta()

/home/shhu/Documents/SageMath/local/lib/python2.7/site-packages/sage/graphs/lovasz_theta.pyc
 
in lovasz_theta(graph)
     78     tf.close()
     79     lines = subprocess.check_output([os.path.join(SAGE_LOCAL, 
'bin', 'theta'), tf_name])
---> 80     return float(lines.split()[-1])

ValueError: could not convert string to float: failed.

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to