Some tweaks for edges.py

* Improve performance for multiple calls by pre-building weights
* Fix output array dimensions in doc string
* Remove old author since the code has been completely refactored