Results 1 to 2 of 2

Thread: Edge length in graphviz

  1. #1
    Join Date
    Apr 2009
    Beans
    34
    Distro
    Ubuntu 10.04 Lucid Lynx

    Edge length in graphviz

    Is it possible to specify the edge length in dot?? I tried weight but it is not working.

  2. #2
    Join Date
    Mar 2009
    Beans
    86

    Re: Edge length in graphviz

    Hi bonzi,

    Without more detail on what you are trying to do it's hard to help, but you could try nodesep:

    Code:
    digraph G {
            nodesep=0.5;
            rankdir=LR;
    
            {
            rank = same;
            $n_1$(2);
            $n_2$(2);
            $n_3$(2);
            }
    
            $n_2$ -> $n_1$;
            $n_2$ -> $n_3$;
    }
    HTH,
    Christo

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •