Source code for MedGraph can be found here.