If I input:

g = {"CompleteBipartite", {2, 3}}; 
{GraphData[g, "LabeledImage"], GraphData[g, "EdgeList"]}

then I can see a graph with its vertices labeled. I want to see the edges labeled.


2 Answers 2


You can use the property "LabeledGraph" and wrap the output with Graph and add the desired options:

Graph[GraphData[{"CompleteBipartite", {2, 3}}, "LabeledGraph"], 
 EdgeLabels -> Placed[Automatic, .7]]

enter image description here

Note: The property "LabeledGraph" is not listed in GraphData["Properties"]:

MemberQ[GraphData["Properties"], "LabeledGraph"]



You are probably better off controlling the output Graph object directly. Note how to place labels so they do not overlap with Placed. Read up on docs.

    GraphData[{"CompleteBipartite", {2, 3}}],

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.