From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 15:01:44 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 5B778106566B for ; Mon, 15 Sep 2008 15:01:44 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 152DB8FC1A for ; Mon, 15 Sep 2008 15:01:43 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so654637ywe.13 for ; Mon, 15 Sep 2008 08:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=N8MoMKEkHYVbxsjvo02Pkx11NEexeeSQ189+4/HhrYE=; b=uoCvNQ8No+UVkFMigdHShvoUYtBjXKAXFVnVSRX65UtQ6/zVZclTWeGt3Nkcksyp25 +yeJSNU5EuBP73Dh3DlnHJc+3FAQNnUEcygu/3gMsGkSQK8JNnYNUZy5aeAV3LYcYiIw l3nd/OkyQ/CDGRPGjmRp1f7OHqKzKpLBSOPFI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LUsrY5+7JKDxb5OuAbzRT3QBEVwp79SVsuc5jM5ZCWNNwgrj4NtvsRrLCHaNcFa86+ rcjPRhPNuAc7zt9P1Ms2Sc6XgBhuzy4YD3tS8I9XLEBaCW/X8QHT1XWXrFA6pnPK2N5g 0vG+vZO/CgzPyPHrcFOJ08e4BXXgo5sX8SAAA= Received: by 10.90.100.20 with SMTP id x20mr9783027agb.107.1221490901433; Mon, 15 Sep 2008 08:01:41 -0700 (PDT) Received: by 10.90.89.18 with HTTP; Mon, 15 Sep 2008 08:01:41 -0700 (PDT) Message-ID: <89ce7f740809150801o37176df9oa7be4cc8f4d50a95@mail.gmail.com> Date: Mon, 15 Sep 2008 11:01:41 -0400 From: "Ivan \"Rambius\" Ivanov" To: "John Almberg" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 15:01:44 -0000 Hello, On Mon, Sep 15, 2008 at 10:31 AM, 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? I am using graphics/graphviz, http://www.graphviz.org/, for graphs drawing. It uses an input .dot file containing the graph description and produces a image (.jpg or .ps) with the visual representation of the graph. I used to generate those .dot files from the data in my programs and process them with graphviz. I am not sure that may be it even exports API to be directly called. Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com