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": [{"group": 
"0", "name": "1"}, {"group": "0", "name": "10"}]}


What works correctly on the other hand:

DiGraph({1: [10]}).show(method='matplotlib')
DiGraph({1: [2]}, ).show(method='js')
DiGraph({'1': ['10']}).show(method='js')

In the html code of the last example target and source are swapped:

"links": [{... "target": 1, ... "source": 0, ...}], ... "nodes": [{"group": 
"0", "name": "1"}, {"group": "0", "name": "10"}]}


Another failing example is:
Graph({1: [2], 2: [7], 3: [10], 5: [7]}).show(method='js')
showing the nodes as:
2-3-10-7, 1-5

Replacing 10 by 9 results in the correct graph:
1-2-7-5, 3-9

Cheers,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to