The base system (GraphViz) allows you to specify multiple label to a nodes and apparently also specify the compass point to 'place the label' at a particular point on the node based on the points of a compass. ie.

a -> b:f0:se

'connect node 'a' to node 'b' at label 'f0' at the compass point 'se' (south east).

But the perl interface doesn't mention how to specify this option. It only talks about assigning 'multiple labels' to a node and how to select a connection to a specific node.

Tomorrow I might try:

$g->add_node('a'); $g->add_node('b', label => ['0', '1']); $g->add_edge('a' => 'b', to_port => '0:se');

Comments anyone?

TIA Fulko


In reply to graphViz and compass pointed labels by fhew

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.