If you get parked at Terminal B you'll have a harder time making it "comfortably" as you have to recover your bag and recheck in Term B and then transfer via Airtrain or even walk to C. If you get parked at C it'll be a piece of cake the recheck counter is right outside as you exit customs, then go upstairs thru security and you're done.
Generally EDI will park at C but if things are balled up there's no telling.
This happened to us last year. LGW flight was delayed approx 1 hour ( sat waiting on a taxiway !) & we arrived in Terminal B.
The imigration was manic & there was no assistance from CO to help us connect to our flight. It took over 2 hours to get to the gate for the MCO flight in Terminal C so were bumped onto a later flight - a further 4 hour wait ! Strange thing was that even during these high security times, our baggage made the ealier flight un-accompanied !!!!
On the return leg, we arrived in Terminal C over 90 mins late & we were put on the " buggy " to the gate for the last flight to LGW at 10.15pm. We were last on to the flight but it took only 15 mins from doors opening to sitting on the LGW flight !
Very impressive if the same Terminal used for connection - othewrewise be prepared !