Implement flow network