Unconnected terminals handled as trivial nodes
Prioritized ground over named wires