|
Boost Users : |
Subject: Re: [Boost-users] Trouble w/ fruchterman-reingold
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-10-04 14:12:36
On Thu, 4 Oct 2012, eric wrote:
> I can't explain this, but when I changed the VertexList type parameter on
> adjacency_list (the second parameter) from listS to veS, it started working
> beautifully.
>
> Is that a bug, maybe?
When you were using listS as the vertex container, you were creating a
vertex_index property but not initializing. Thus, the vertex_index values
were most likely all zero, and so all vertices were mapped to the same
location in the displacement map. Switching to vecS made the vertex_index
property auto-generated with correct values, fixing the bug.
-- Jeremiah Willcock
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net