I'm trying to display label for edges.
As I know from https://github.com/fkling/JSNetworkX/wiki/Drawing-graphs it is connected with with_edge_labels and edge_labels, but I cannot get it working - edge_labels function is not called, edge_labels: "label" does not work too.
I'm trying to display label for edges. As I know from https://github.com/fkling/JSNetworkX/wiki/Drawing-graphs it is connected with with_edge_labels and edge_labels, but I cannot get it working - edge_labels function is not called, edge_labels: "label" does not work too.
`var G = new jsnx.Graph(); G.addEdge(1,3, {label : "gg"}); G.addEdge(3,1, {label : "gg"}); G.addEdge(1,5, {label : "gg"}); G.addEdge(1,7, {label : "gg"}); G.addEdge(7,3, {label : "gg"}); G.addEdge(7,9, {label : "gg"});
});`
Could you explain where I am wrong?