Optimizing network aligner