private void replaceNodeInOutEdges(DataVertex node, DataVertex replacement) {
		for (DataVertex outNode : node.sinks) {
			for (int i = 0; i < outNode.sources.size(); i++) {
				if (outNode.sources.get(i) == node) {
					outNode.sources.set(i, replacement);
				}
			}
			replacement.sinks.add(outNode);
		}
		node.sinks = new ArrayList<>();
	}
All out edges of the given node, become out edges of a replacement node. 
@param node is the given node
@param replacement is the node receiving the new out edges
Ghidra/Features/CodeCompare/src/main/java/ghidra/features/codecompare/graphanalysis/DataGraph.java