 		nodes = svg.append('svg:g').selectAll('g')
 
 		# mouse event vars
-		selectedNode = null
 		mouseDownEdge = null
 		mouseDownNode = null
 		mouseUpNode = null

						net.addEdge(edge)
						$scope.$apply() # Quick save net to storage

				# select new link
				selectedNode = null
				restart()

			# show node text

				.style('marker-start', (edge) -> if edge.left then 'url(#startArrow)' else '')
				.style('marker-end', (edge) -> if edge.right then 'url(#endArrow)' else '')
				.on 'mousedown', (edge) ->
					mouseDownEdge = edge
					restart()

			# remove old links
