 |
Read a graph from the web and perform Markov clustering
Source code name: "graph_medusa_clustering.py"
Programming language: Python
Topic: Data mining/Graphs
DMelt Version 1.8. Last modified: 06/21/1971. License: Pro
https://datamelt.org/code/cache/graph_medusa_clustering_2882.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 jhplot import *
http="http://datamelt.org/examples/data/"
print Web.get(http+"sample1_medusa.dat")
c=HMedusa()
c.loadFile("sample1_medusa.dat")
gg=c.getGraph()
c.visible() # show the graph
from medusa.georgios.Layouts import Layouts
Layouts.Apply_MCL_Propagation_Clustering(gg,c.getPanel())
# Layouts.Apply_Affinity_Propagation_Clustering(gg,c.getPanel())
# Layouts.Apply_Predefined_Clustering(gg,c.getPanel())
c.update()
You see the box below because you did not login.