On the application of Kirchhoff's laws to communication nets