parse struct format
added graph.py