Change
Represents changes for a Node or Edge during a step of the algorithm.
Constructor Summary
Public Constructor | ||
public |
constructor(object: Node | Edge, fields: Array<string>, preValues: Object<string, *>, duringValues: Object<string, *>, postValues: Object<string, *>) Constructs a change object. |
Member Summary
Public Members | ||
public |
|
|
public |
object: * |
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
Set object values to those it had during the step. |
|
public |
Set object values to those it had after the step. |
|
public |
applyPre() Set object values to those it had before the step. |
Public Constructors
public constructor(object: Node | Edge, fields: Array<string>, preValues: Object<string, *>, duringValues: Object<string, *>, postValues: Object<string, *>) source
Constructs a change object.
Params:
Name | Type | Attribute | Description |
object | Node | Edge | A Node or Edge object. |
|
fields | Array<string> | Array of field names to be stored. |
|
preValues | Object<string, *> | Object containing field names and their respective values before the step. |
|
duringValues | Object<string, *> | Object containing field names and their respective values before the step. |
|
postValues | Object<string, *> | Object containing field names and their respective values after the step. |