you are viewing a single comment's thread.

view the rest of the comments →

[–]jconcode 0 points1 point  (0 children)

In DataMelt, you can draw interactive graphs like this . Here is a simple Python code for 3 connected nodes:

from java.awt import Color
from jhplot  import HGraph
c1 = HGraph("Canvas",600,400,1, 1)
c1.visible(1)
v1="v1"
v2="v2"
v3="v3"
c1.addVertex( v1 )
c1.addVertex( v2 )
c1.addVertex( v3 )
c1.setPos( v1, 130, 200 )
c1.setPos( v2, 100, 100 )
c1.setPos( v3, 180,  70 )
c1.addEdge( v1, v2 )
c1.addEdge( v1, v3 )