I am having problems in trying to label a graph containing mixed edges (directed and undirected edges). The simplest demonstration is based on an example in the documentation for EdgeLabels
here:
We can create the following directed graph:
g1 = Graph[{1 -> 2, 2 -> 3, 3 -> 1}, EdgeLabels -> {(1 -> 2) -> "Label 1", (2 -> 3) -> "Label 2", (3 -> 1) -> "Label 3"}]
or the following undirected graph:
g2 = Graph[{1 <-> 2, 2 <-> 3, 3 <-> 1}, EdgeLabels -> {(1 <-> 2) -> "Label 1", (2 <-> 3) -> "Label 2", (3 <-> 1) -> "Label 3"}]
Both plot fine but when I mix directed and undirected edges I get no image appearing such as:
g3 = Graph[{1 -> 2, 2 -> 3, 3 <-> 1}, EdgeLabels -> {(1 -> 2) -> "Label 1", (2 -> 3) -> "Label 2", (3 <-> 1) -> "Label 3"}]
Am I doing something wrong or is this a documented problem? In the Wolfram documentation there is a possible issue for labelling of directed edges but this seems to be resolved using parentheses. Does someone have a workaround for this?