Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from drcubic import *
- def analyze_cycle_graph(n):
- G = nx.cycle_graph(n)
- isct = nx.intersection_array(G)
- print('n =', n)
- print('intersection array', isct, sep='\n')
- print('left representation', intersection_array_to_L(isct), sep='\n')
- print('irreducible characters', repr(characters(intersection_array_to_R(isct))), sep='\n')
- print()
- if __name__ == '__main__':
- for n in range(2, 10):
- analyze_cycle_graph(n)
Advertisement