d3_gram_parse


gram.js API / Exports / d3-gram-parse

Module: d3-gram-parse

Table of contents

Functions

Functions

dataFromPath

ConstdataFromPath(p: GramPath): PathDatumRecord

Parameters:

Name Type
p GramPath

Returns: PathDatumRecord

Defined in: src/d3-gram-parse.ts:42


edgeToD3

ConstedgeToD3(edge: GramEdge): GramLinkDatum

Parameters:

Name Type
edge GramEdge

Returns: GramLinkDatum

Defined in: src/d3-gram-parse.ts:66


nodeToD3

ConstnodeToD3(node: GramNode): GramNodeDatum

Parameters:

Name Type
node GramNode

Returns: GramNodeDatum

Defined in: src/d3-gram-parse.ts:50


parse

Constparse(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