From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Polyakov Newsgroups: gmane.lisp.guile.user Subject: Re: Looking for graph library Date: Wed, 12 Oct 2022 14:13:19 +0500 Message-ID: <87edvdpfps.fsf@gmail.com> References: <87edvibocv.fsf@gmail.com> <20221008212014.16e2a2e5@aicha> <87czb1jmj9.fsf@elephly.net> <20221009154724.507c016f@aicha> <878rlok396.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Ricardo Wurmus , David Pirotte Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Oct 12 11:15:04 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiXpP-00041j-GI for guile-user@m.gmane-mx.org; Wed, 12 Oct 2022 11:15:03 +0200 Original-Received: from localhost ([::1]:45918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiXpI-00037B-Mp for guile-user@m.gmane-mx.org; Wed, 12 Oct 2022 05:14:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiXnp-0002VO-88 for guile-user@gnu.org; Wed, 12 Oct 2022 05:13:27 -0400 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:35420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiXnn-0001rP-IA for guile-user@gnu.org; Wed, 12 Oct 2022 05:13:25 -0400 Original-Received: by mail-lj1-x22b.google.com with SMTP id m23so1083043lji.2 for ; Wed, 12 Oct 2022 02:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SVjqrumEXJ3YR6lPyHmgKf2dAIzgZPF+oBNCSo47MhY=; b=ilDXoHjcY5jLt4e/3JdMJPoRdQ/2FSInqhj9x9n6KJUhGxqp7LdWNaQN7s9z5RNvP6 QqrMbd/PFH/fXQkB88uq5YXn8SDiK4BmMCAdBMtjLP5XBbEzuX6vpj2xKGyoSKYu//em AslCysPug3JOhX3Lue7IQ+FKXuqvn1n0bkwihpus4zTZU72PhdqKe+ZD+paZBzVQghil p2xNQo+qv/PFklJJasd7+18TIdc61mEhQxJ+JZK+g5h+LmxtKphn8IdHcujYofQtW3mz eQ4n6C03B4Y84ZP1m205ZCu1A8tRtfja8Kmes3gWEUBEmP+KYBpoW0kjVfCVCGSlke6C ix+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SVjqrumEXJ3YR6lPyHmgKf2dAIzgZPF+oBNCSo47MhY=; b=IcWE9E8OVPHdvhJqqHr9hQUGfzUydFWWEtrfwutcSYtc9tN0oTyovtlKmpTy6bKkhf pI9tRui1k6N05fGqAmr2o0xcGdoNxkcx7ewiI2/gIS9wrEzRKKHIVbjJfTb0/wNJc3lc 0+nwUEp1L1ztWwkUyr5N6IR0+hNI6ROOeF5Q35MruVPE+M+famYYjJyPWI4wLRX2Qe0F p8bsyKC85C0QIy0fy+01JZg38DW2LzE2woCVD1Fm/w4JwwSYYG0yd2mZzkBsG2wZGwDA SHoLbW4VFFX2D7g/mjMt8gdZdmWvYrrmRgQ9Rgccl/UjJxen6Nc6qpvowAlbtPXtsvSA iHEw== X-Gm-Message-State: ACrzQf12orRDSjDrbp1ld+zjIK5veUCQF9s1q9IklTsecRQLJ5L7neqP w+Q5Hz6JLUlyw3KfAh2vCBE= X-Google-Smtp-Source: AMsMyM6YphGll4qBahjaI8Qb4gPVyQul8vrOhv4tRtkOVFILHnpx70E3TBPRmza6JXTNDUm93hD+5w== X-Received: by 2002:a05:651c:1306:b0:26e:2e1:4ac6 with SMTP id u6-20020a05651c130600b0026e02e14ac6mr11071472lja.486.1665566001184; Wed, 12 Oct 2022 02:13:21 -0700 (PDT) Original-Received: from localhost ([109.195.103.71]) by smtp.gmail.com with ESMTPSA id b12-20020a056512070c00b004a2386b8d15sm2209648lfs.212.2022.10.12.02.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 02:13:20 -0700 (PDT) In-Reply-To: <878rlok396.fsf@elephly.net> Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=liltechdude@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18617 Archived-At: Ricardo Wurmus 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