Shared Variable Gone! Edges not appearing in svg string