[prev in list] [next in list] [prev in thread] [next in thread]
List: graphviz-interest
Subject: Re: [graphviz-interest] pinning nodes in neato: keeping them
From: Lars Huttar <lars_huttar () sil ! org>
Date: 2011-01-20 4:27:17
Message-ID: 4D37B9A5.7010904 () sil ! org
[Download RAW message or body]
On 1/19/2011 4:45 PM, Emden R. Gansner wrote:
> On 1/19/11 5:16 PM, Lars Huttar wrote:
>> So in stress.c, if I follow each call to conjugate_gradient_mkernel()
>> (or at least the one inside "if (havePinned)") with some code to coerce
>> the coords of each (non-pinned) node to be non-negative, that would at
>> least qualify as a naive implementation?:-)
> That's what I would try.
>
> Emden
>
>
I changed the lines
if (!isFixed(np))
coords[k][i] = tmp_coords[i];
to
if (!isFixed(np))
coords[k][i] = MAX(0.0, tmp_coords[i]);
Now I'm trying to test the result.
I'm building on Linux.
However when I run neato, even before rebuilding with the above change,
I get an error about cairo being out of memory.
Maybe I need to stop using the development snapshot
(graphviz-2.27.20110119.0545.tar.gz) and use the stable release version.
Lars
_______________________________________________
graphviz-interest@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic