Modified EdgeBuilder to use arrays of primitive types