How to define a structure which has the following properties:
1. it is a node in a net.
2. it has neighbors, whose number is not decided.
3. neighbors could be combined and also could be divided. In another word, the number of neighbor could be adjusted.
Is the following structure legal? Although it works right now in my program.
typedef struct
[
int neighbornumber;
vector<int> neighbor;
]
T_Netnode;
Thank you very much!