Graph.insert modifications: make insertNode.node an instance of a LinearGraph.