SharedGraphs(public).sagewsOpen in CoCalc
Author: Tien Chih
Views : 2
import sys from sage.all import * #Graphs G and H G = Graph([('a', 'b'),('b', 'c'), ('b', 'd')]) H = Graph([(1, 2), (2, 3) ]) #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #PLEASE DO NOT EDIT ANYTHING AFTER THIS LINE!! #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! print("\n\n Graph G \n") G.show() print("\n\n Graph H \n\n") H.show()