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
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