Re: [SLUG] making graphs

From: Eben King (eben01@verizon.net)
Date: Wed Feb 24 2010 - 12:12:22 EST


On Wed, 24 Feb 2010, ronan wrote:

> Eben King wrote:
>> On Mon, 22 Feb 2010, Dylan William Hardison wrote:
>>
>>> On Monday, February 22, 2010 at 06:00PM -0500, Eben King wrote:
>>>> What's an application in which I can draw a graph? I don't mean graphs
>>>> as in "charts and graphs", I mean a set of nodes connected by edges,
>>>> possibly with weights or direction attached to those edges. Think the
>>>> railway network, or an airline's flights.
>>>
>>> I think you may want http://www.graphviz.org.
>>>
>>> Way back when, I used graphviz to visualize the PSTA routes.
>>
>> Great, thanks. Sounds like what I need. BTW, I have this version:
>>
>> eben@pc:~$ dot -V
>> dot - Graphviz version 2.16 (Fri Feb 8 12:54:58 UTC 2008)
>>
>> How is it used? I can't figure out squat. Running "dot" just hangs, and the
>> web page apparently only says what it's used for, not how to use it.
>>
> You have to make a text file that defines the nodes in your graph. Then you
> run dot to process that text file. It is probably hanging, expecting the
> contents of that text file to come-in on stdin (like "cat myfile | dot"),
> since you didn't specify a filename on the command-line. For a language-guide
> (and other info):
>
> http://www.graphviz.org/Documentation.php

Thanks. I made the graph, but of course I'm not happy with it -- the nodes
are cities, and I want to bind them to their actual location on a map.
Then I'll probably want to indicate (somehow) transit time on the edges. I
did find http://en.wikipedia.org/wiki/DOT_language though.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.mine.nu:81

An idea that is not dangerous is unworthy of being called an idea at all. -Oscar Wilde ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:49:52 EDT