I want to create a graph (Graph Theory) where certain edges have a different colour to other edges, which would be used to highlight a path in the graph from one vertex to another.
Here are some examples which have different coloured edges http://demonstrations.wolfram.com/AGraphTheoryInterpretationOfTheSumOfTheFirstNIntegers/ and http://demonstrations.wolfram.com/Ramsey336/. I looked at source code for these but those solutions seem complicated. I need a simple example to work from. I reckon I need to use the EdgeRenderingFunction as one of the options for GraphPlot.
Additionally under EdgeRenderingFunction documentation in "More Information" part it says EdgeRenderingFunction->g specifies that each edge should be rendered with the graphics primitives given by g[{Subscript[r, i],[Ellipsis],Subscript[r, j]},{Subscript[v, i],Subscript[v, j]},Subscript[lbl, ij]], where Subscript[r, i], Subscript[r, j] are the beginning and ending points of the edge, Subscript[v, i], Subscript[v, j] are the beginning and ending vertices, the Subscript[lbl, ij] is any label specified for the edge. http://reference.wolfram.com/mathematica/ref/EdgeRenderingFunction.html This looks useful but unfortunately there is no coded examples to try.
Taking that very literally I tried things like
GraphPlot[{1 -> 2, 2 -> 3, 3 -> 4, 4 -> 1, 2 -> 4, 4 -> 5, 4 -> 6}, VertexLabeling -> True,
EdgeRenderingFunction -> g[{1, 2}, {1, 2}, Red]]
But that wouldn't work. It will take something more clever than that.