CLIM mail archive

[Prev][Next][Index][Thread]

format-graph-from-root



   Date: Mon, 16 Nov 92 13:30:06 +0100
   From: Bernd Wild <bwild%fzi.de@lucid.com>

   Is there a better version of format-graph-from-root available than  
   the one in CLIM 1.1. I know that this is only a port of the  
   Symbolics version but if you want to display serious graphs you  
   face the problem that format-graph-from-root always centers the  
   successor nodes relative to all predecessor nodes. If you have only  
   partially complete graphs this looks very crazy and cannot be used  
   for any applications.

While I concur that the CLIM graphing algorithm isn't the best, I
don't see the problem in your particular example.  I tried this test
code:

(progn
  (window-clear win)
  (format-graph-from-root '(z y (x)) #'prin1 #'identity
			  :orientation :horizontal
			  :stream win)
  (force-output win))

It produced a graph that looked more like your 2nd drawing below.  Can
you supply a test case that shows the problem?

   Example:
   CLIM 1.1:

	     B
	   /
       A -      D
	   \   / 

	     C

   but I want this:
	     B
	   /
       A -
	   \
	     C - D


0,,

Follow-Ups: References:

Main Index | Thread Index