Boost graph with existing data structure or using it as the data structure
I'm writing an application that's parsing a data structure with something like struct Block { std::string foo; /* ... even more local data ... */ }; std::map<std::string, Block> blockContainer; // Each Block will have a name here struct Signal { // the direct links to the Blocks, no redundant storage of the name so that an // simple renaming of a Block would be possible std::map<std::string, Block>::iterator from; std::map<std::string, Block>::iterator to; std::string bar; /* ... even more local data ... */ }; std::vector<Signal> signalContainer; parsing and filling this list was quite easy.