microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.36k stars 308 forks source link

Reloading graph leads to error #97

Open Alfa123456 opened 7 years ago

Alfa123456 commented 7 years ago

When I am try to save the graph with my own UserData(My class) and try reload it, occurs exception. The problem is while try to take the Type of the UserData occurs error from MSAGL.

levnach commented 7 years ago

I suggest using an integer for you UserData. This integer can be an index in the array where you keep the real data.