Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph] problem with weight_map ? (brandes_betweenness_centrality)
From: The Maschine (justthemaschine_at_[hidden])
Date: 2013-03-20 06:24:22


Hi,

##

> EdgeWeightProperty weight = getWeight(a, b); // 0f ... 2.0f

Can you just assign a double to a boost::property<...> object? That
should probably not be allowed.

##

I found the example here and made my code:

http://programmingexamples.net/wiki/CPP/Boost/BGL/DijkstraUndirected

###

What happens if you write an explicit loop over all of the edges and use
put(edge_weight, g, e) directly? Does that change any of the results?

-- Jeremiah Willcock

###

In not sure what you mean? Im not a super expert, can you please
explain your thought more?

Best,

Tasos



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