Kirchhoff-s laws and applications to network solutions