http://js.cytoscape.org/#collection/data

The following fields are immutable: id: The id field is used to uniquely identify an element in the graph. source & target : These fields define an edge's relationship to nodes, and this relationship can not be changed after creation. parent: The parent field defines the parent (compound) node.

interface CollectionData {
    attr(name?: string): any;
    attr(name: string, value: any): this;
    attr(obj: any): this;
    data(name?: string): any;
    data(name: string, value: any): this;
    data(obj: any): this;
    jsons(): string[];
    removeAttr(names?: string): CollectionReturnValue;
    removeData(names?: string): CollectionReturnValue;
}

Hierarchy (view full)

Methods