How do I show edge properties in Jsnetworkx?
I would like to be able to change the edge color and the end of the arrow style (some edges to be arrows and some T's. (Something like: http://upload.wikimedia.org/wikipedia/commons/d/dc/DG_Network_in_Hybrid_Rice.png)
I am trying to adapt one of the examples:
var G = jsnx.DiGraph();
G.add_nodes_from([1,2,3,4,5,[9,{color: '#008A00'}]], {color: '#0064C7'});
G.add_cycle([1,2,3,4,5]);
G.add_edges_from([[1,9,{color: '#008A00'}], [9,1]]);
jsnx.draw(G, {
element: '#canvas',
with_labels: true,
node_style: {
fill: function(d) {
return d.data.color;
}
},
label_style: {fill: 'white' },
edge_style: {
fill: 'red'
}
});