@@ -0,0 +1,416 @@
+%22%22%22matrixmarket.py: Converts a csv timestamped edgelist file to matrix market format%22%22%22%0A%0Aimport sys%0Aimport scipy as sp%0Aimport scipy.io as spio%0Aimport pandas as pd%0A%0Aif __name__ == '__main__':%0A    df = pd.read_csv(sys.stdin, header=None,)%0A    I = df%5B1%5D%0A    J = df%5B2%5D%0A    data = %5B1 for i in range(len(I))%5D%0A    #write the matrix market format%0A    A = sp.sparse.coo_matrix((data, (I, J)))%0A    spio.mmwrite(sys.stdout, A)%0A

convert an edgelist to a matrix market format on stdi/o