 |
Meedusa interactive graphs built using Python
Source code name: "graph_medusa1.py"
Programming language: Python
Topic: Data mining/Graphs
DMelt Version 1.8. Last modified: 06/19/1971. License: Pro
https://datamelt.org/code/cache/graph_medusa1_4998.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from medusa.graph import Graph,Node,Edge
graph=Graph()
n1="v1"
n2="v2"
e=Edge(n1,n2,1)
graph.addEdge(e)
n1="v2"
n2="v7"
e=Edge(n1,n2,4)
graph.addEdge(e)
n1="v7"
n2="v8"
e=Edge(n1,n2,1)
graph.addEdge(e)
print graph.report()
from jhplot import *
c=HMedusa()
c.visible()
c.add(graph)
You see the box below because you did not login.