From: Dmitry Polyakov <liltechdude@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>, David Pirotte <david@altosw.be>
Cc: guile-user@gnu.org
Subject: Re: Looking for graph library
Date: Wed, 12 Oct 2022 14:13:19 +0500 [thread overview]
Message-ID: <87edvdpfps.fsf@gmail.com> (raw)
In-Reply-To: <878rlok396.fsf@elephly.net>
Ricardo Wurmus <rekado@elephly.net> writes:
Could you provide examples of graph creation? It's not entirely obvious
to me how they need to be created via graph-cons.
I tried doing something like this:
(define test ;name
(graph-cons (context ; making context
"this-is-label" ;context label
(list (link "this-is-label-1" 1)) ;first link
(list (link "this-is-label-2" 1))) ;second link
graph-null)) ;initial graph
This structure is created without problems, but when I want to draw it
through (draw test)
Then I get an error:
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): 1
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
--
sanity level in trouble
next prev parent reply other threads:[~2022-10-12 9:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-08 10:29 Looking for graph library Dmitry Polyakov
2022-10-08 13:42 ` Maxime Devos
2022-10-08 14:07 ` Ricardo Wurmus
2022-10-10 17:18 ` zimoun
2022-10-09 0:20 ` David Pirotte
2022-10-09 10:51 ` Ricardo Wurmus
2022-10-09 18:47 ` David Pirotte
2022-10-09 23:00 ` Ricardo Wurmus
2022-10-12 9:13 ` Dmitry Polyakov [this message]
2022-10-12 16:33 ` Ricardo Wurmus
2022-10-12 19:35 ` Dmitry Polyakov
2022-10-14 17:17 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edvdpfps.fsf@gmail.com \
--to=liltechdude@gmail.com \
--cc=david@altosw.be \
--cc=guile-user@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).