d3_gram_parse
gram.js API / Exports / d3-gram-parse
Module: d3-gram-parse
Table of contents
Functions
Functions
dataFromPath
▸ Const
dataFromPath(p
: GramPath): PathDatumRecord
Parameters:
Name | Type |
---|---|
p |
GramPath |
Returns: PathDatumRecord
Defined in: src/d3-gram-parse.ts:42
edgeToD3
▸ Const
edgeToD3(edge
: GramEdge): GramLinkDatum
Parameters:
Name | Type |
---|---|
edge |
GramEdge |
Returns: GramLinkDatum
Defined in: src/d3-gram-parse.ts:66
nodeToD3
▸ Const
nodeToD3(node
: GramNode): GramNodeDatum
Parameters:
Name | Type |
---|---|
node |
GramNode |
Returns: GramNodeDatum
Defined in: src/d3-gram-parse.ts:50
parse
▸ Const
parse(src
: string): GramGraphData
Parses text as gram, returning a graph representated nodes, links and paths.
Parameters:
Name | Type | Description |
---|---|---|
src |
string |
Returns: GramGraphData
Defined in: src/d3-gram-parse.ts:29