I am working on an approximate matching problem, where I have a set of paths in an unknown graph (A) and a partial graph (B), where B is incrementally generated and growing.
The problem is to match the edges in the paths to the graph B, while preserving the ordering of edges across the paths & graph. In my problem, the graph nodes are immaterial and the edges have non-unique labels upon which matching is performed. Also, the paths to be matched can have arbitrary edges added/deleted while matching is to the graph B. If I am not satisfied with the current solution, I can query an oracle, that gives me a more complete (bigger) graph (that's what I mean by growing) but I want to minimize the queries as the graph can potentially be infinite.