From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.user Subject: Re: Looking for graph library Date: Sun, 09 Oct 2022 12:51:43 +0200 Message-ID: <87czb1jmj9.fsf@elephly.net> References: <87edvibocv.fsf@gmail.com> <20221008212014.16e2a2e5@aicha> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7808"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 28.1 Cc: Dmitry Polyakov , guile-user@gnu.org To: David Pirotte Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Oct 09 12:53:58 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 1ohTwU-0001oM-9q for guile-user@m.gmane-mx.org; Sun, 09 Oct 2022 12:53:58 +0200 Original-Received: from localhost ([::1]:43200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohTwS-0003wr-Qu for guile-user@m.gmane-mx.org; Sun, 09 Oct 2022 06:53:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohTwG-0003wi-Pz for guile-user@gnu.org; Sun, 09 Oct 2022 06:53:44 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohTwE-0000xE-9x for guile-user@gnu.org; Sun, 09 Oct 2022 06:53:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1665312815; cv=none; d=zohomail.com; s=zohoarc; b=J6kU8PJArerGSXP45akCwLwD21ThYGcdQGgrDVTBvENiyM5wkWvAVJq7IEiR8yqhpyr6ym3z6MLX9Coi6lTg5qydXj17lPKuDq0JcS9lxFGcy3I27yr/yU44FSx/O+v1CKsul8LhhkI9TlO/jkYhr+aQ3cPgGQBSYfP77Hy+ey4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665312815; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=eQa6IIUT8eC2hzlKasMi+lej5MbkCpaO6zHclXYUxic=; b=PGKt4V/XnTzrNVdcfYv5gx//Btwr5CD/LqEPc6jwjQKEqykpBBCC5cSdCRYySxvmtdBtDmN8i3Zz1dDChe4V0wUeCBEPH8jFazT0B9BR2EpaVHZq2bJ9fYYiogKTnlRfKEadcCz4SbvidJM72a00R2/lj68vMgHFZ0m1YE7jhXU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1665312815; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=eQa6IIUT8eC2hzlKasMi+lej5MbkCpaO6zHclXYUxic=; b=BLwN7d3jqJO/d+9V24KKsPNHAoCLO5M76miJ6vu+AoM3eUapJ/x93HuVyODKBajN 46TLL5Lrtocnxg4mgWO5JLCXC/11y2tLl24o0F7H8YgDFQ8isZ50H5TeoS+rdPJEj8k W1SWQ8LOrLDtHO73t/OBOCHtuEQlNC8k0ynQMqa8= Original-Received: from localhost (i5E862C9C.versanet.de [94.134.44.156]) by mx.zohomail.com with SMTPS id 1665312813944240.51844638631746; Sun, 9 Oct 2022 03:53:33 -0700 (PDT) In-reply-to: <20221008212014.16e2a2e5@aicha> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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, 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:18613 Archived-At: David Pirotte writes: >> Can you recommend any library for working with graphs (I did not find >> it in srfi and mailing list). Almost what I need to have in graphviz >> bindings, but there are no predicate functions and the like. > > In addition to the answers from Maxime and Ricardo ... I searched > because I thought guile has(had) a graphviz binding somewhere, here is > what I found > > https://reposcope.com/man/en/3guile/gv Yes, graphviz comes with Guile bindings. Since they don=E2=80=99t provide a Guile module you need to define a module like this: --8<---------------cut here---------------start------------->8--- (define-module (libgv) #:export (digraph node edge layout render setv)) (load-extension "libgv_guile" "SWIG_init") --8<---------------cut here---------------end--------------->8--- These bindings are not very useful for anything beyond visualizing graphs, though. --=20 Ricardo