Add is_connected? method to compute