Quantum graphs as quantum relations