Mapped memory for edge weights