Network Optimization Algorithms And Applications To Molecular Biology