VertexIdSet
A set specifically meant for vertex IDs. A normal set will not de-duplicate multiple instances of vertex IDs pointing to the same location. This one does.
Type Parameters
Section titled “Type Parameters”T extends KnownVertexId = KnownVertexId
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VertexIdSet<T>(iterable?): VertexIdSet<T>;Parameters
Section titled “Parameters”iterable?
Section titled “iterable?”Iterable<T, any, any>
Returns
Section titled “Returns”VertexIdSet<T>
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get size(): number;Returns
Section titled “Returns”number
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”iterator: IterableIterator<T>;Returns
Section titled “Returns”IterableIterator<T>
add(vertexId): this;Parameters
Section titled “Parameters”vertexId
Section titled “vertexId”T
Returns
Section titled “Returns”this
clear()
Section titled “clear()”clear(): void;Returns
Section titled “Returns”void
delete()
Section titled “delete()”delete(vertexId): boolean;Parameters
Section titled “Parameters”vertexId
Section titled “vertexId”T
Returns
Section titled “Returns”boolean
has(vertexId): boolean;Parameters
Section titled “Parameters”vertexId
Section titled “vertexId”T
Returns
Section titled “Returns”boolean
hasWorkbook()
Section titled “hasWorkbook()”hasWorkbook(workbookKey): boolean;Parameters
Section titled “Parameters”workbookKey
Section titled “workbookKey”number
Returns
Section titled “Returns”boolean
values()
Section titled “values()”values(): IterableIterator<T>;Returns
Section titled “Returns”IterableIterator<T>
workbookKeys()
Section titled “workbookKeys()”workbookKeys(): number[];Returns
Section titled “Returns”number[]