Optimal Network Coding Under Some Less-Restrictive Network Models