-- -*- M2-comint -*- hash: 10217732561905354644

i1 : R = QQ[a..k];

i2 : G = graph {a*b,b*c,c*d,a*d,f*g,h*i,j*k,h*k}

o2 = Graph{"edges" => {{a, b}, {b, c}, {a, d}, {c, d}, {f, g}, {h, i}, {h, k}, {j, k}}}
           "ring" => R
           "vertices" => {a, b, c, d, e, f, g, h, i, j, k}

o2 : Graph

i3 : L = connectedGraphComponents G

o3 = {{e}, {a, b, c, d}, {f, g}, {h, i, j, k}}

o3 : List

i4 : R = QQ[a,b,c,d];

i5 : G = graph {a*b, b*c}

o5 = Graph{"edges" => {{a, b}, {b, c}}}
           "ring" => R
           "vertices" => {a, b, c, d}

o5 : Graph

i6 : connectedGraphComponents G

o6 = {{d}, {a, b, c}}

o6 : List

i7 : isolatedVertices G

o7 = {d}

o7 : List

i8 : isConnectedGraph G

o8 = false

i9 : 
