Optimal Network Topology Solution