Text this: Newton loop method in gas pipeline network