Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
First draft for isogenies_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Besnier committed Jun 14, 2014
1 parent 0d583b4 commit 777a5c7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sage/schemes/elliptic_curves/ell_finite_field.py
Expand Up @@ -1311,16 +1311,11 @@ def isogenies_graph(self,l):
already_visited=set()

def recurse_loop(j):
if j in (0,1728):
raise NotImplementedError("At least a curve has a j-invariant in"
"(0,1728).")
if j in already_visited: return
already_visited.add(j)

for (r,m) in mod_pol(x,j).roots():
while m:
G.add_edge((r,j))
m-=1
G.add_edges([(r,j)]*m)
recurse_loop(r)
recurse_loop(self.j_invariant())
return G
Expand Down

0 comments on commit 777a5c7

Please sign in to comment.