An efficient topological algorithm for determination of the equivalent network and network functions for reciprocal multipole