Commit Graph

7 Commits

Author SHA1 Message Date
Robert Machmer
73b74ca3fe Add Edge and Node classes to init.lua
This way they can be required separately from the Graph class.
2016-01-09 05:03:45 +01:00
Robert Machmer
99850a423a Update documentation 2016-01-03 02:43:56 +01:00
Robert Machmer
dba6a49587 Remove name attribute in Node class
Seems kind of redundant to have both an id and a name attribute.
2016-01-03 02:33:03 +01:00
Robert Machmer
e6154ba5ea Allow anchor flag to be set when a Node is created 2016-01-03 02:32:57 +01:00
Robert Machmer
78050c9af7 Add anchor nodes
Nodes set as anchors won't be affected by the force directed layout.
They can be used to fixate the graph to a certain area.
2016-01-02 15:19:35 +01:00
Robert Machmer
59a055da99 Add optional name parameter for Nodes
This parameter can be accessed via the getName getter. If no value is
passed to the constructor the name variable will default to the id.
2015-12-24 16:56:40 +01:00
Robert Machmer
ac060cda1e Turn library into a package 2015-12-24 00:06:44 +01:00