For getting all branch members connections you can use attibutes 'connectionsh'. Additionally check code of function !!addConnected().
thanks for your suggestion