initial implementation of customBFS with edge aggregator (requires adjustments)