first working version with add, connect, ufold, map, isEmpty, and nodes functions
initial draft of purely functional graph implementation