On 22.06.2015 16:30, Lukas Szabo wrote:
> Hey,
>
> I tried to reproduce a plot with graph-tool.
>
> http://ryancompton.net/2014/10/05/graph-tools-visualization-is-pretty-good/
>
> Sadly I wasn't able to do so, because of this error:
>
> *AttributeError: 'list' object has no attribute 'get_bstack'*

Where does this error appear?

> While trying to find a solution, I discovered further Information:
>
> "|list.clear()| is not in Python 2, only in Python 3. The example runs 
> without problem in Python 3. Anyway, graph-tool is supposed to work on Python 
> 2.7 and above, so this might as well be reported as a bug."
>
> http://stackoverflow.com/questions/22527108/attributeerror-when-trying-to-do-a-block-partition-with-graph-tool
>
> Is there still an opportunity to get this done with Python 2?


The specific bug above has been fixed a long time ago. Whatever you are
experiencing, is unrelated to it.

Note that if you want to do this type of visualization, it can be done
most easily now with the draw_hierarchy() function:

     
https://graph-tool.skewed.de/static/doc/draw.html#graph_tool.draw.draw_hierarchy

Best,
Tiago


-- 
Tiago de Paula Peixoto <ti...@skewed.de>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to