BGL: getting components of graphs with properties