CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2016-03-17-lmfdb.sagewsOpen in CoCalc

Examples for support purposes...

%auto
# Read in the raw data using the LMFDB API:
import json, urllib2
url = "http://www.lmfdb.org/api/elliptic_curves/nfcurves/ObjectId%28%2756a21a058c8c1791521eac4c%27%29?_format=json"
obj = json.loads(urllib2.urlopen(url).read())
%auto
m = matrix(obj['data'][0]['isogeny_matrix'])
m = m.apply_map(lambda x: x if is_prime(x) else 0)
g = Graph(m, format='weighted_adjacency_matrix')
show(g, edge_labels=True, charge=-600)
# You can click and drag the vertices around below...
d3-based renderer not yet implemented
show(m)
(000000000200000300000000200000030000000300000200000000003000000002000003000003200000000000000030020000000030020020030200000000000002303002020000000000030020200020202000200003000000000000002003002002000200020330000200000000002000030000030000020000300000000000000020000300300000000002003000000003002000000000000300000020000000)\displaystyle \left(\begin{array}{rrrrrrrrrrrrrrrrrr} 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 3 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 3 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 3 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 3 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 3 \\ 0 & 0 & 0 & 0 & 0 & 3 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 3 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 3 & 0 \\ 0 & 2 & 0 & 0 & 2 & 0 & 0 & 3 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 2 & 3 & 0 & 3 & 0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