Initialize ports as edges in all cases.

Change-Id: I5224a15565c0ea8936df59fd23320293be29f52d