On Fri, Jan 18, 2013 at 7:36 PM, Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com" target="_blank">rustompmody@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


The add_edge/4 routine in digraph claims to have labels that are arbitrary erlang terms.<br>However nothing I do seems to show me the label I created the edge with.<br></blockquote><div><br></div><div>Hello!!</div><div><br>


</div>You can retrieve the label information of edge E in a digraph G with the function digraph:edge(G, E).<div><br></div><div>Here's the output of my interpreter (R15B03)</div><div><br></div><div><div>1> G = digraph:new().</div>


<div>{digraph,16400,20497,24594,true}</div><div>2> digraph:add_vertex(G, v1).</div><div>v1</div><div>3> digraph:add_vertex(G, v2).</div><div>v2</div><div>4> digraph:add_edge(G, e1, v1, v2, my_label).</div><div>e1</div>


<div>5> digraph:edge(G, e1).                      </div><div>{e1,v1,v2,my_label}</div></div><div><br></div><div>I hope that helps!</div><div><br></div><div>Aggelos </div></div>