unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [wanted] automagic generation of graphs
@ 2007-07-20 16:09 Marco Maggi
  2007-07-20 17:43 ` Jon Wilson
  2007-07-20 18:46 ` [wanted] automagic generation of graphs Thien-Thi Nguyen
  0 siblings, 2 replies; 6+ messages in thread
From: Marco Maggi @ 2007-07-20 16:09 UTC (permalink / raw)
  To: guile-user

Ciao,

  I need to test some module that handles graphs and
constraint networks; I would like to automatically
generate test graphs, both cyclic and acyclic. I wonder
if someone has already written some code for it and
is willing to share it or to suggest ideas.

  It should be "enough" to build something like a
pseudo-random mega-scheme-function-call like:

   (a
     (b c (d e a))
     (f (c g) (h c))
     (g (e b)))

in which:

* all the elements in the lists are symbols;
* each symbol appears once and only once as
  first element in a list;
* each symbol appears at least once as first
  element in a list.

TIA

--
Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [wanted] automagic generation of graphs
@ 2007-07-24 13:57 Marco Maggi
  2007-07-24 17:49 ` Jon Wilson
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Maggi @ 2007-07-24 13:57 UTC (permalink / raw)
  To: guile-user

Thanks to all. Am I correct in saying that with a form like:

  (a . body)

if the symbol 'a' appears in 'body' the graph is cyclic,
while if the symbol does not appear in its own body the
graph is Acyclic?

--
Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-24 17:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 16:09 [wanted] automagic generation of graphs Marco Maggi
2007-07-20 17:43 ` Jon Wilson
2007-07-20 17:44   ` Here's the attachment Jon Wilson
2007-07-20 18:46 ` [wanted] automagic generation of graphs Thien-Thi Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2007-07-24 13:57 Marco Maggi
2007-07-24 17:49 ` Jon Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).