Skip to content

Instantly share code, notes, and snippets.

aymaliev /
Created January 19, 2018 12:38 — forked from conradlee/
Converts edgelists to pajek files. Works for very large files.
#!/usr/bin/env python
import os
import sys
import subprocess
import optparse
import tempfile
# Special feature: can convert files so large that they
# don't fit in memory. Works for weighted/unweighted,
# directed/undirected edges.