({{, EdgeLabeling 
is an option for (RefLink[GraphPlot, paclet:ref/GraphPlot]) and related functions that specifies whether labeling specified for edges should be displayed by default.}})

OpenersNotesSection(Spacer1)Details

EdgeLabeling->(RefLink[Automatic, paclet:ref/Automatic]) gives edge labels as tooltips.

EdgeLabeling->(RefLink[True, paclet:ref/True]) displays edge labels explicitly at the middle of each edge.

EdgeLabeling->(RefLink[False, paclet:ref/False]) does not display edge labels.

Any explicit setting for (RefLink[EdgeRenderingFunction, paclet:ref/EdgeRenderingFunction]) overrides the setting for EdgeLabeling.

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Show edge labels:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"}}]

Show edge labels as tooltips:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"}},EdgeLabeling->Automatic]

Do not show edge labels at all:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"}},EdgeLabeling->False]

OpenersExampleSection1(Spacer1)Scope  (3)

By default, (RefLink[GraphPlot, paclet:ref/GraphPlot]), (RefLink[TreePlot, paclet:ref/TreePlot]), and (RefLink[LayeredGraphPlot, paclet:ref/LayeredGraphPlot]) show edge labels:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"},2->5,2->6}]

Show edge labels as tooltips:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"},2->5,2->6},EdgeLabeling->Automatic]

Do not show edge labels at all:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"},2->5,2->6},EdgeLabeling->False]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

An explicit setting for (RefLink[EdgeRenderingFunction, paclet:ref/EdgeRenderingFunction]) overrides the setting for EdgeLabeling:

GraphPlot[{{1->2,"1->2"},2->3,3->4,4->1,{2->4,"2->4"},2->5,2->6},EdgeLabeling->True,EdgeRenderingFunction->(Line[#]&)]

Use (RefLink[EdgeRenderingFunction, paclet:ref/EdgeRenderingFunction]) to display edge labels for (RefLink[GraphPlot3D, paclet:ref/GraphPlot3D]):

GraphPlot3D[{{1->2,"1->2"},4->1,{2->4,"2->4"},1->5,2->5,5->4},EdgeRenderingFunction->({If[#3=!=None,Text[#3,Mean[#1],Background->Yellow],{}],Line[#]}&)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DirectedEdges, paclet:ref/DirectedEdges])  ▪  (RefLink[Arrowheads, paclet:ref/Arrowheads])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Graph Drawing, paclet:tutorial/GraphDrawingOverview])}, {▪(RefLinkPlain[General Graph Drawing, paclet:tutorial/GraphDrawing])}, {▪(RefLinkPlain[Hierarchical Drawing of Directed Graphs, paclet:tutorial/LayeredGraphDrawing])}, {▪(RefLinkPlain[Tree Drawing, paclet:tutorial/TreeDrawing])}})}})