Change algebraic_connectivity to raise NetworkXError on unrecognized method