Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Just a Test

Public visualization

Just a Test

0 stars0🌍 Public
Wwilliamhsu0502
Last edited Feb 11, 2020
Created on Jan 30, 2020

This example renders a directed graph as a sentence parse tree, showing the hierarchical structure of the phrase "This is an example sentence." The nodes represent grammatical categories (TOP, S, NP, VP) and tokens (This, is, an, example, .), with edges connecting parents to children. Code uses the dagre-d3 library’s `Graph`, `render`, and `setNode`/`setEdge` APIs to compute a layered layout and draw it on an SVG. Custom CSS styles round the node corners and highlight token nodes (type-TK) in teal. The D3 selection `d3.select('svg')` appends a group for the rendered output.

AI-generated description

Just a Test.

Comments

Sign in to join the discussion.

MIT Licensed