I am looking for an efficient way of sending property graph over WAN. For the sake of latency and bandwidth I should make it as efficient as possible. One solution would be serializing the graph data structure and sending that in a chunk of smaller size over socket. This approach could be implemented in different ways. Probably the most obvious implementation would be sending graph in a serialized List of triple (vertex-edge-vertex) for all edges and serialized vertices for all disconnected vertices. However, it is clear that this solution is not efficient since vertices could be sent multiple times and can use lots of bandwidth.
I know graph data structure can be transferred using adjacency list and adjacency matrix, but I can not figure it out the way of serialization and sending that over WAN in these forms. I would be really grateful if somebody can help me with an efficient solution.