Re: [Seqan-dev] Sparse property map


John,

the long-term solution for us is to fix the map module and make the graph module work better with it.

A medium-term solution would be to fix graph_property.h.

The quick fix for you is to use std::map directly. Comment out the resizeVertexMap(). You can use seqan::_getId(vertexOrEdgeDescriptor) to get a number from a vertex or edge descriptor.

Bests,
Manuel

Am 15.07.2011 um 10:18 schrieb John Reid:

Hi,

If I want to store a property for every vertex in a suffix array I can
do something like this:

    String< double > property;
    const double v = 1.3;
    resizeVertexMap( index, property );
    assignProperty( property, value( top_down_it( index ) ), v );
    const double prop_value = getProperty( property, value(
top_down_it( index ) ) );

Here the properties are stored in a seqan::String. What if I only want
to store properties for a very few of the vertices in a very large
index? Is there some sparse storage I can use instead of String?

Thanks,
John.

_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev

--
Manuel Holtgrewe			manuel.holtgrewe@fu-berlin.de
Freie Universität Berlin		http://www.inf.fu-berlin.de/
Institut für Informatik			Phone: +49 30 838 75246
Takustraße 9				Algorithmic Bioinformatics
14195 Berlin				Room 021