How do I connect 2 boards together?

Would I use the UART pins or the I2C pins?
What pins go from the Edison(UART or I2C) to the Arduino?