<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 08/27/2015 08:23 PM, Bastian Bittorf
wrote:<br>
</div>
<blockquote cite="mid:20150827182350.GW12602@medion.lan" type="cite">
<pre wrap="">* Nemesis <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:nemesis@ninux.org"><nemesis@ninux.org></a> [27.08.2015 17:29]:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>On 08/27/2015 04:28 PM, Bastian Bittorf wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> > </span>* Nemesis <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:nemesis@ninux.org"><nemesis@ninux.org></a> [27.08.2015 16:05]:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> >> </span>Just put a custom attribute in each link object (eg: "type":
<span class="moz-txt-citetags">> >> </span>"wireless"), I'll help you to style it so that each class of link has a
<span class="moz-txt-citetags">> >> </span>different color or something. So we can show other people what we mean.
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> > </span>ok, here we go:
<span class="moz-txt-citetags">> > </span><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://intercity-vpn.de/networks/giancarlo/meshrdf/netjson.html">http://intercity-vpn.de/networks/giancarlo/meshrdf/netjson.html</a>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>Sorry.. I changed my mind about a detail:
<span class="moz-txt-citetags">> </span>netjsongraph automatically visualizes stuff in the properties object, so
<span class="moz-txt-citetags">> </span>if you put the type in the properties hash we can start displaying it
<span class="moz-txt-citetags">> </span>without changing the library, then I'll send you the JS to display the
<span class="moz-txt-citetags">> </span>different colors.
</pre>
</blockquote>
<pre wrap="">this will not work, because one node can have different interfaces with
different types - how can i add that to properties?
</pre>
</blockquote>
<br>
<font face="Helvetica, Arial, sans-serif">Link objects can have
properties too<font face="Helvetica, Arial, sans-serif">!<br>
<br>
<font face="Helvetica, Arial, sans-serif">Now you have:<br>
</font></font></font><br>
{<br>
"source": "20",<br>
"target": "3",<br>
"cost": 1.000,<br>
"type": "wireless"<br>
}<br>
<br>
Try this:<br>
<br>
{<br>
"source": "20",<br>
"target": "3",<br>
"cost": 1.000,<br>
"properties": {<br>
"type": "wireless"<br>
}<br>
}<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</body>
</html>