Package: libgv-ruby
Version: 2.20.2-3
Severity: normal
File: gv-ruby

The graphviz command neato -n can be used to layout a graph with given node
positions. Using the library directly the engine is called nop.
If engine nop is used once the flag -n is set for all future invocations of
neato (see the following script):

================================================================
#!/usr/bin/ruby -w

require 'gv'

g = Gv.graph('G')              # create graph g
gn1 = Gv.node(g, 'n1')         # add node n1
Gv.setv(gn1, 'pos', '10,10')   # set its position
# the following line only works if all nodes have a "pos" attribute:
Gv.layout(g,'nop')             # compute the layout using neato -n

h = Gv.graph('H')              # create graph h
hn1 = Gv.node(h, 'n1')         # add node n1
# the following line should work without position information:
Gv.layout(h,'neato')           # compute the layout using neato
================================================================

The last line gives the error:
| Error: node n1 in graph H has no position
| as required by the -n flag

If you remove (uncomment) the line 
| Gv.layout(g,'nop')             # compute the layout using neato -n
there is no error.

So I assume using 'nop' once sets the -n flag and using 'neato' afterwards
does not remove it. I found no way to manually reset this flag.

Thanks a lot,
Klaus

-- System Information:
Debian Release: 5.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (200, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgv-ruby depends on:
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  libgcc1                      1:4.3.2-1.1 GCC support library
ii  libgraphviz4                 2.20.2-3    rich set of graph drawing tools
ii  libruby1.8                   1.8.7.72-3  Libraries necessary to run Ruby 1.
ii  libstdc++6                   4.3.2-1.1   The GNU Standard C++ Library v3
ii  ruby1.8                      1.8.7.72-3  Interpreter of object-oriented scr

libgv-ruby recommends no packages.

libgv-ruby suggests no packages.

-- no debconf information

-- 
http://lapiz.istik.de/

The Answer is 42. And I am the Answer. Now I am looking for the Question.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to