Index Returns the result of adding two complex numbers. Connects nodes specified by id1 and id2. Connects the node to the specified by id. Adds a node. node adjacencies Indicates if the node is adjacent to the node indicated by the specified id allowed angle span for adjacencies placement angle span rate For private use only. Intended for private use: calculates positions for children and grandchildren of root node. Intended for private use: calculates node positions on canvas by performing a BFS-like algorithm Use this object to store a new Canvas instance. A multi-purpose Canvas object decorator. Canvas initializer. Captures mouse position. for non-JSON generated trees: number of children Clears the canvas object. A multi-purpose Complex Class with common methods. Complex constructor. Hyperbolic Tree configuration object. Returns the conjugate por this complex. For private use only: corrects angle value based on quadrant. for non-JSON generated trees: tree depth Draws the boundary circle for the Hyperbolic Tree. show/hide main circle Node flag Canvas context handler. Returns a node info property. Canvas absolute position to the HTML document. Returns mouse position relative to canvas. An object that contains the canvas width and height. Returns a Boolean instance indicating if node belongs to graph or not. Use this object to store a new HT instance. Hyperbolic Tree (HT) class. Creates a new HT instance. Sets of classes and objects to plot and calculate a hyperbolic tree. The HyperLine class allows you to draw “lines” on the Poincare’s disk model for Hyperbolic Geometry. HyperLine constructor. additional node information Loads parameters and places the HT. initial edge length node distance to center id for label container Loads an HT with the depth, children and prob parameters stored in the Config object. for non-JSON generated trees: customizeable array of nodes per depth level Loads an HT with the loadTreeArray parameter stored in the Config object.
Creates and displays labels for the centered node and its adjacent nodes. Calculates a moebius transformation for this point / complex. Calculates a moebius transformation for the hyperbolic tree. A multi-purpose Mouse class. Behaviour of the hyperbolic tree node. Node constructor. Calculates the complex norm. Calculates node’s distance to origin. In this section you’ll find the objects that you must use in order to make a Canvas or HyperbolicTree instance. node position Prints graph / tree edges Creates a label containing the root node information. Creates a label containing the node information. Used for drawing the HT on a frame Prints the HT nodes after being translated to a relative position. Prints the HT on canvas Draws the HyperLine on canvas. Plots the node on canvas. for non-JSON generated trees: probability of edge creation Returns the result of multiplying two complex numbers. Returns the result of scaling a Complex instance. For private use only: sets angle direction to clockwise (true) or counterclockwise (false). Intended for private use: sets some label properties, such as positioning and className. For private use: sets a flag. Calculates canvas absolute position on HTML document. show/hide edges show/hide labels, must be set to false if the nodes have no additional info. show/hide nodes Calculates the complex squared norm. time slot for animation frame Returns a string that shows the Complex properties. Translates the HT to the mouse position. Tranlates the HT to a given position Translates canvas coordinates system to the center of the canvas object. |