Implmented import and exourt for graphs (closes #2)