I have an urban area (let them think of it as a street graph), where all the streets have some weight and length associated with them. I want to find a connected set of streets located next to another, with max (or close to maximum) total weight W, given that my maximum subgraph can only contain up to N streets.
Iβm not specifically interested in the subgraph that covers the entire schedule, but rather a small cluster of streets, maximum or close to the maximum combined weight, and where all the streets are located βnext toβ each other, where βnextβ it will be determined that no street is will be more than X meters from the center of the cluster. A suitable subgraph must be connected.
Does anyone know if a name exists for this algorithm, if it exists?
Also interested in any solutions, accurate or approximate.
To show this visually, suppose my graph is all street segments (intersection with intersection) in the image below. Thus, the individual street is not Avenue A, it is Avenue A between 10 and 11 and so on. The street will have a weight of 1 or 0. Suppose that the set of streets with the maximum weights is in the selected polygon - I want to find this polygon. 
source share