This method converts a Sparse6 or Graph6 string S to an instance of the class Graph, stored in G, with the given polynomial ring R.
i1 : R = QQ[a..e]; |
i2 : stringToGraph("Dhc", R) o2 = Graph{edges => {{a, b}, {b, c}, {c, d}, {a, e}, {d, e}}} ring => R vertices => {a, b, c, d, e} o2 : Graph |