added network edge output, fixed inverted indexing behavior