I have a struct representing a node in a graph. All instances of this 
struct store a list of references/pointers to their immediate neighbors in 
the graph. The following is what the struct looks like in C++:

struct Node {
  string name;
  vector<Node*> neighbors;

  //  ...
};

Suppose I have 4 nodes marking the corners of a square, each node would 
hold pointers to two neighbors. How do I represent the above struct as a 
protocol buffer message?


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to