Skip to content

Instantly share code, notes, and snippets.

View timothymalcham's full-sized avatar

Timothy Malcham timothymalcham

View GitHub Profile
@timothymalcham
timothymalcham / gml2json.py
Created November 26, 2019 21:00 — forked from jschaub30/gml2json.py
Python script for converting graphml (*gml) files to json
#!/usr/bin/env python
import sys
def gml_sub(blob):
lines = []
for line in blob.split('\n'):
line = line.strip()
lines.append(line)