Fetches the metadata file, parses it and returns a promise of the result.
Fetches a text file and returns a promise of the result.
Parses an ArrayBuffer of a proto txt file into a raw Graph object.
Parses a ArrayBuffer of a proto txt file into javascript object.
The ArrayBuffer or file object implementing slice.
Map (Set) of all the repeated fields, since you can't tell directly from the pbtxt if a field is repeated or not.
The parsed object.
Parses a native js value, which can be either a string, boolean or number.
The value to be parsed.
Parse a file object in a streaming fashion line by line (or custom delim). Can handle very large files.
The callback called on each line
The size of each read chunk. (optional)
The delimiter used to split a line. (optional)
A promise for when it is finished.
TODO: REMOVE THIS Since proto-txt doesn't explicitly say whether an attribute is repeated (an array) or not, we keep a hard-coded list of attributes that are known to be repeated. This list is used in parsing time to convert repeated attributes into arrays even when the attribute only shows up once in the object.
Generated using TypeDoc
Fetches the graph file, parses it and returns a promise of the result. The result will be undefined if the graph is empty.