Re: [Boost-bugs] [Boost C++ Libraries] #4087: boost::fruchterman_reingold_force_directed_layout fails compiling

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4087: boost::fruchterman_reingold_force_directed_layout fails compiling
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-12 20:16:35


#4087: boost::fruchterman_reingold_force_directed_layout fails compiling
------------------------------------------------------------------+---------
  Reporter: Wolfgang Forstmeier <wolfgang.forstmeier@…> | Owner: jewillco
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: graph
   Version: Boost 1.42.0 | Severity: Showstopper
Resolution: invalid | Keywords:
------------------------------------------------------------------+---------
Changes (by jewillco):

  * status: new => closed
  * resolution: => invalid

Comment:

 The F-R function requires a displacement map or a vertex index map (used
 to create an internal displacement map). Adding
 boost::vertex_index_map(vertexIdMap) as the last argument to
 boost::fruchterman_reingold_force_directed_layout makes the code work. By
 the way, vertex indices need to be numbers from 0 to num_vertices(g)-1,
 and so the numbers you are putting into that property map have an
 incorrect range.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4087#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC