JoelSjogren

cyclic.py

Apr 2nd, 2017
304
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from drcubic import *
  2.  
  3. def analyze_cycle_graph(n):
  4.     G = nx.cycle_graph(n)
  5.     isct = nx.intersection_array(G)
  6.     print('n =', n)
  7.     print('intersection array', isct, sep='\n')
  8.     print('left representation', intersection_array_to_L(isct), sep='\n')
  9.     print('irreducible characters', repr(characters(intersection_array_to_R(isct))), sep='\n')
  10.     print()
  11.  
  12. if __name__ == '__main__':
  13.     for n in range(2, 10):
  14.         analyze_cycle_graph(n)
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment