"Andrej Vodopivec" <andrej.vodopivec at gmail.com> schrieb:
>> 1. I could not test the 'picture'-part because of an load error 'draw'.
>> please, which draw package is the right one? Where to get it?
> The draw package is a recent addition to maxima. It will be available
> in maxima 5.12 or you can download it from maxima cvs if you use
> version 5.11.
Hello Andrej,
I installed graphviz-2.12 and draw.lisp version 5.11.
Now I get the following output ..
(%i1) load("graphs/graphs")$
Loading graph theory package 'graphs', version 1.0.
(%i23) draw_graph(dodecahedron_graph());
(%o23)
wxdraw2d(points_joined=false,point_size=1,line_type=1,point_type=5,points_joined=false,label_alignment=left,points([[0.57142857142857,0.50490313322172],...,[0.71108571428571,0.97656063142789]]),label_color=1,point_type=0,line_type=1,points_joined=true,axis_top=false,axis_bottom=false,axis_left=false,axis_right=false,ytics=false,head_length=0.05,head_angle=20,xtics=false,points([[0.57142857142857,0.50490313322172],...,points([[0.71108571428571,0.97656063142789],[0.7872,0.67424061229371]]),label_color=3)
.. but no picture. Have I missed something?
>> 2.
> I guess I forgot to declare Tree as a local variable when I wrote the
> documentation. I'm attaching the corrected version.
Thank you, now bfs works fine.
To see intermediate results of Tree I included print(Tree). ok.
Q: Are there other possibilites to study the 'growing tree' _without_ to change the code?
In the learning phase it would be nice to study the stepwise construction of objects.
As a beginner I do not know enough about 'debugging in Maxima' ..
Changing of code would currently be a problem for me if it is written in Lisp.
--
Wolfgang
privat: Wolfgang Lindner, Stieglitzweg 6, D-42799 Leichlingen (Germany)