Use `eles.byGroup()` and unmerge the loops to reduce iterations and number of intermediary collections in Bellman-Ford
Use `eles.byGroup()` and unmerge the loops to reduce iterations and number of intermediary collections in Bellman-Ford

Ref #1224

cytoscape/cytoscape.js,cytoscape/cytoscape.js