Will be used in testing so we can compare graphs instead of packed result.
Switch to malloc'ing each node individually rather than trying to guess up front the total buffer space needed.