Guys,
I was playing with sage executing this code:
d = {0: [2,3,5], 1: [3,4,5], 2: [4],3:[5]}; H = Graph(d); H.is_line_graph()
The output was like this:
Exception Traceback (most recent call last)
<ipython-input-6-d1df3a7a0511> in <module>
----> 1 H.is_line_graph()
/usr/lib/python3/dist-packages/sage/graphs/line_graph.pyx in sage.graphs.line_graph.is_line_graph (build/cythonized/sage/graphs/line_graph.c:2286)()
220 if g.is_connected():
221 try:
--> 222 R, isom = root_graph(g)
223 if certificate:
224 return True, R, isom
/usr/lib/python3/dist-packages/sage/graphs/line_graph.pyx in sage.graphs.line_graph.root_graph (build/cythonized/sage/graphs/line_graph.c:7147)()
621
622 if not is_isom:
--> 623 raise Exception(error_message)
624
625 return R, isom
Exception: It looks like there is a problem somewhere. Youfound a bug here ! Please report it on sage-devel,our google group !