An algorithm for constructing the admittance matrix of a power system is given which is based upon the concept of an indefinite admittance matrix. The application of this algorithm to a power system with mutually coupled elements is discussed. The simplicity of the method is illustrated by means of an example.