Encode the partition key for relation edges.
Source/target entity id.
Relation name.
Traversal direction.
Encoded partition key for the relation edge.
Encode the partition key for relation edges.