jacqui / DataStructures.Tree

A Javascript DataStructure library containing classes for representing Tree structures. Also includes methods to convert from a flat self-referencing table, to a hieararchical tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataStructures.Tree

A JavaScript data structure library containing classes for representing tree structures.

The library can be found in /js/lib/DataStructures.Tree.js

A primary purpose of this library is the ability to be able to convert from a flat self-referencing table to a hierarchical tree, which in turn can be decorated.

The illustrating example in /index.html shows a flat table representing the code in the DataStructures library being converted to hierarchical json and decorated in a way that is suitable for d3 circle packing.

Tests for DataStructures.* are written in QUnit and can be found in /js/lib/tests/test.html.

more info on my blog

Bitdeli Badge

About

A Javascript DataStructure library containing classes for representing Tree structures. Also includes methods to convert from a flat self-referencing table, to a hieararchical tree.

License:MIT License


Languages

Language:JavaScript 69.9%Language:CSS 20.0%Language:HTML 10.1%