Skip to content

Instantly share code, notes, and snippets.

@chihming
chihming / adjacency-list-to-edges.py
Created February 24, 2018 07:13
convert an adjacency list to edge list format
import sys
"""
usage:
python adjacency-list-to-edges.py [adjacency-list-file] [edge-list-file]
example:
this program will help convert this:
[adjacency-list-file]