found speed up, need to impliment

keep track of nodes already added, so you don’t do additions of nodes
already in graph and edges that already exist. searching a list should
be faster than this.