1
$\begingroup$

This question already has an answer here:

AdjacencyGraph[{{1, 1, 0}, {0, 0, 1}, {0, 0, 1}}, 
 DirectedEdges -> True]

If you look very closely at the resulting visual display in a notebook (below), you can see narrowing where the arrow heads might be. Many adjacency graphs display without problem. What is causing this display problem? Is there a general but not complex approach (i.e., an approach suitable to real-time classroom display) to avoiding this problem? (Mma version 10.2 on Win 7.)

graph plot with missing arrows

$\endgroup$

marked as duplicate by Szabolcs, MarcoB, user9660, Karsten 7., Community Oct 28 '15 at 19:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    $\begingroup$ There were questions about this before, but I cannot find them. Yes, this is very annoying. It happens because the arrowhead size is a fixed fraction of the image width. If the image is narrow, the arrowheads are small, sometimes literally invisible. Consider using the option EdgeStyle -> Arrowheads[Medium] which forces an absolute measurement independent of the image size. Related: mathematica.stackexchange.com/q/788/12 You can also consider complaining to Wolfram Support, maybe they'll give this more priority then ... $\endgroup$ – Szabolcs Oct 28 '15 at 15:47
  • 1
    $\begingroup$ Actually, looking more carefully, this is fixed in version 10.3. David's answer doesn't show it because that display of the graph is wide. But PathGraph[Range[3], DirectedEdges -> True, GraphLayout -> "LayeredDigraphEmbedding"] does. The arrowheads are invisible in 10.2 and look fine in 10.3 $\endgroup$ – Szabolcs Oct 28 '15 at 16:05
0
$\begingroup$

In Mathematica 10.3,

 AdjacencyGraph[{{1, 1, 0}, {0, 0, 1}, {0, 0, 1}}, 
 DirectedEdges -> True]

yields

enter image description here

$\endgroup$
  • 1
    $\begingroup$ You are right: it did get fixed in 10.3. But this example does not show that. Please see my comments under the question. $\endgroup$ – Szabolcs Oct 28 '15 at 16:10
  • $\begingroup$ I'm accepting this answer because it meets my needs, but I understand @Szabolcs reservations and his suggestion to use EdgeStyle -> Arrowheads[Medium]. Thanks! $\endgroup$ – Alan Oct 28 '15 at 19:24

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