Simple graph

What happens if you add a node that already exists? What happens here is that it's "replaced," so it won't read as having any edges, but other nodes that previously had edges to it will retain those edges. I don't think this will lead to an exception anywhere but you could get some unexpected behavior.