From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 14:37:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04B361065670 for ; Mon, 15 Sep 2008 14:37:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id BA8E58FC18 for ; Mon, 15 Sep 2008 14:37:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-50-131.dynamic.qsc.de [92.195.50.131]) by mx01.qsc.de (Postfix) with ESMTP id 4871E518FD; Mon, 15 Sep 2008 16:37:00 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m8FEaxLA001828; Mon, 15 Sep 2008 16:36:59 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 15 Sep 2008 16:36:59 +0200 From: Polytropon To: John Almberg Message-Id: <20080915163659.90ca2a0b.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Port for drawing directed graphs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 14:37:02 -0000 On Mon, 15 Sep 2008 10:31:57 -0400, John Almberg wrote: > I am working on some software that must, as it's final output, > produce a printout of a directed graph... nodes, connected by > directed links. > > The printout could be generated by a postscript file, jpg, whatever. > > Does anyone know of a utility (in ports?) that can take a data set > (for example, a two dimensional array that defines the nodes and the > links between them), and produce a printable graph? > > Any help much appreciated. I think it's possible to use LaTeX for this, as long as you're willing to provide the document basis, put an \include for the drawing contents and then have a small processing script that generates this file. There is some LaTeX document class that supports graphs, I think. The output would be PS or PDF. For manual work, xfig can be used, but I'm not sure if it can be "remote controlled" by a data file. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...