Export graph to serialized format(xml;json)