Implemented risk measurement for edges in the connectivity graph between neurons.

The javascript side needs work.