Annotation

Jump To: Members

Annotations allow you to associate arbitrary data with entities in a graph. The special thing about annotations is that they allow you to weakly associate data. When the annotation is garbage-collected, all data associated with the annotation is garbage collected, even though the graph may still contain the entities that have been annotated.

However, data in the annotation is not garbage collected when entities are removed from the Graph. You MUST remove the annotated data manually when entities are removed from the Graph. This is typically done by adding a listener to the Graph's 'removenode' and 'removeedge' events.

Instance Methods