I am really new to jquery and arbour. Can anyone tell me really simply what the code is to add text to a node in arbor, and where I put the code? For example if had this;
sys.addEdge('a','b', {length:.75, pointSize:3, label:"hello"})
sys.addEdge('a','c')
sys.addEdge('a','d')
sys.addEdge('a','e')
sys.addEdge('a','g')
sys.addEdge('g','h')
sys.addNode('f', {alone:true, mass:.25})
thanks :)
You have just specified the edges of the graph and not the nodes. You need to specify the nodes and add their names in the
label
property like:Here, the
label
stores the name of the node to be displayed on the graph.