How to change arrowhead type?

Nick Heiner picture Nick Heiner · Nov 17, 2009 · Viewed 17.2k times · Source

I want to simulate non-directional graphs with .dot. To that end, I want the arrowhead type to be "none". How do I set this?

"f" -> "t" [label=2],[arrowhead=none]
"m" -> "d" [label=0],[arrowhead=none]

The above is not working.

Answer

Timothy picture Timothy · May 12, 2011
"f" -> "t" [label=2, arrowhead=none]

For example:

digraph g {
  rankdir="LR";
  dpi=300;
  node[
    fontname="Arial",
    shape="square",
    fixedsize=false,
    width=1.809,
    style=rounded
  ];

  edge [
    arrowhead="none"
  ];

  Node1 -> Node2;
  Node2 -> Node3;
  Node3 -> Node4;
}