BA 1451 then BA 1424 at Heathrow
Edinburgh → London → Inverness
Timetable, London time
17:30BA 1451 from Edinburgh at the gate
17:15BA 1424 to Inverness leaves the gate
23 h 45 apart on the timetable, overnight
BA 1424 leaves 23 h 45 after BA 1451 arrives on the timetable: more than half a day, so not a connection we count.