only add edges that are also found in all-edges subgraph. solves #5
generate properly edges from provided fragment