A relationship between entities
idUnique identifier
source_idSource entity ID
target_idTarget entity ID
typeRelationship type
descriptionDescription
weightRelationship weight
source_chunksSource chunk IDs
metadataAdditional metadata
new()Create a new Relationship
Relationship$new(
source_id,
target_id,
type,
description = NULL,
weight = 1,
source_chunks = NULL,
metadata = NULL
)source_idSource entity
target_idTarget entity
typeRelationship type
descriptionDescription
weightWeight
source_chunksSources
metadataMetadata
to_list()Convert to list
Relationship$to_list()
clone()The objects of this class are cloneable with this method.
Relationship$clone(deep = FALSE)deepWhether to make a deep clone.