dwalsten5 / GraphConverter

Used to convert between our GraphML flowcharts into GraphSON
0 stars 0 forks source link

Error with multiple flowchart-ceptions in same file #1

Closed dwalsten5 closed 8 years ago

dwalsten5 commented 8 years ago

If a chart has two separate references to the same external chart, the existing converter does not correctly point back to each individual reference starting point. Will need to consider alternatives

dwalsten5 commented 8 years ago

Success! Changed approach in the file to only copy the referenced document into the new chart once. Stored a map of the entry points of each of the referenced charts as well as a map of arrays to the exit points of each referenced chart. Then, used the GSON library to insert this chart in the right place by working with the next question and option fields of these groups of nodes. Major change was to replace the node which references the flowchart-caption in the first place with the first node of the referenced chart