# Create entities
entity1 = client.create_entity("Machine Learning", "topic")
entity2 = client.create_entity("Deep Learning", "topic")
# Create relationship
client.create_relation(
from_id=entity1["id"],
to_id=entity2["id"],
relation_type="RELATED_TO"
)