Include transition() and modularity_matrix() in spectral module
Improve deletion of edges from python interface

This makes edge deletion O(1) if fast edge deletion is enabled for the
graph.