Skip to content
Snippets Groups Projects
Commit e7152871 authored by Radek Hušek's avatar Radek Hušek
Browse files

groupConnectivityNaive: add Zkn

parent ebf7b625
No related branches found
No related tags found
No related merge requests found
from sage.graphs.graph import Graph, DiGraph
from sage.rings.finite_rings.integer_mod_ring import Integers
def Zkn(k, n):
Zk = Integers(k)
return Zk.cartesian_product( *([Zk] * (n - 1)) )
def prettifyGraph(G_):
"""Convert graph into directed one and number its edges."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment