network to code