[sage-devel] Re: Graph.show with js sometimes messes up labels

2019-03-12 Thread Stefan Demharter
Thanks for the fix! I have a suggestion, though: You changed "nodes" to go over the vertices in the order determined by the hashmap. I'd suggest to change "v_to_id" to go over the sorted vertices instead, i.e. something on the line of: V = G.vertices(sort=True) v_to_id = {v: i for i, v in enume

[sage-devel] Graph.show with js sometimes messes up labels

2019-03-10 Thread Stefan Demharter
version() 'SageMath version 8.6, Release Date: 2019-01-15' The smallest failing example I could construct is: DiGraph({1: [10]}).show(method='js') It shows the graph as 10->1 instead of 1->10 In the html source you'd see: "links": [{... "target": 0, ... "source": 1, ...}], ... "nodes": [{"grou