Skip to content

Instantly share code, notes, and snippets.

View Ouwen's full-sized avatar

Ouwen Huang Ouwen

View GitHub Profile
@methodin
methodin / markovCluster.js
Created January 7, 2012 03:54
Markov Clustering
function round(n) {
return Math.round(n*100) / 100;
}
// Represents an edge from source to sink with capacity
var Edge = function(source, sink, capacity) {
this.source = source;
this.sink = sink;
this.capacity = capacity;
};