Matrix method derived from graph method of SI circuit solution