Jens Müller wrote:
Hi, can you tell me what I am doing wrong in the attached code?
The graph I used can be found here: www.tessarakt.de/stuff/planar100k.graphml.zip (1,5 MB ...)
When I run it, it says
$ ./1 #vertices: 0 make_map_as_colormap entered writing something to MapAsColorMap Speicherzugriffsfehle
The crash is due to the empty graph ...
I tried your first example graph at https://projects.forked.de/graph-tool/wiki/GraphToolGuide#Fileformatdescript... That gives me: terminate called after throwing an instance of 'boost::property_not_found' what(): Property not found: weight. My dynamic properties are: dynamic_properties dp; dp.property("coord1", get(&VertexProperties::x, g)); dp.property("coord2", get(&VertexProperties::y, g)); dp.property("length", get(&EdgeProperties::length, g)); So I think this error message is a bit strange ... Reading the 2nd example with edgedefault="undirected" changed to "directed" seems to work, even with the dp as above. Reading the 1st example btw does not even work with an empty dp object. Somehow you seem to have a hard-coded weight property?