I have been trying to understand the following function
l = {{1, 3}, {3, 4}};
GraphPlot[{1 -> 2, 3 -> 4, 1 -> 3, 2 -> 4, 1 -> 2, 3 -> 4},
VertexLabeling -> True,
EdgeRenderingFunction -> (If[
Intersection[l, {#2}] != {}, {Red, Arrow[#1, .1]}, {Blue,
Arrow[#1, .1]}] &)]
(Courtesy of the link: Coloring edges in GraphPlot).
I am unable to understand how the slot function is working..i.e., how Intersection[l,{#2}] is working out.
Could someone please explain this
Thanks
EdgeRenderingFunction
listed in theGraphPlot
documentation? $\endgroup$