@@ -3114,6 +3114,95 @@ gap> D := DigraphRemoveEdge(D, 1, 3);
31143114gap> D := DigraphRemoveEdge(D, 1 , 3 );
31153115< immutable digraph with 6 vertices, 11 edges>
31163116
3117+ # VertexConnectivity
3118+ gap> D := CompleteDigraph(10 );
3119+ < immutable complete digraph with 10 vertices>
3120+ gap> VertexConnectivity(D);
3121+ 9
3122+ gap> ForAny(Combinations(DigraphVertices(D), 8 ),
3123+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3124+ > Difference(DigraphVertices(D), x))));
3125+ false
3126+ gap> D := JohnsonDigraph(9 , 2 );
3127+ < immutable symmetric digraph with 36 vertices, 504 edges>
3128+ gap> VertexConnectivity(D);
3129+ 14
3130+ gap> D := EmptyDigraph(0 );
3131+ < immutable empty digraph with 0 vertices>
3132+ gap> VertexConnectivity(D);
3133+ 0
3134+ gap> D := EmptyDigraph(1 );
3135+ < immutable empty digraph with 1 vertex>
3136+ gap> VertexConnectivity(D);
3137+ 0
3138+ gap> D := Digraph([[ 2 , 4 , 5 ] , [ 1 , 4 ] , [ 4 , 7 ] , [ 1 , 2 , 3 , 5 , 6 , 7 ] ,
3139+ > [ 1 , 4 ] , [ 4 , 7 ] , [ 3 , 4 , 6 ]] );
3140+ < immutable digraph with 7 vertices, 20 edges>
3141+ gap> VertexConnectivity(D);
3142+ 1
3143+ gap> not IsConnectedDigraph(D);
3144+ false
3145+ gap> ForAny(Combinations(DigraphVertices(D), 1 ),
3146+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3147+ > Difference(DigraphVertices(D), x))));
3148+ true
3149+ gap> D := Digraph([[ 2 , 4 , 5 ] , [ 1 , 3 , 4 ] , [ 4 , 7 ] , [ 1 , 2 , 3 , 5 , 6 , 7 ] ,
3150+ > [ 1 , 4 ] , [ 4 , 7 ] , [ 3 , 4 , 6 ]] );
3151+ < immutable digraph with 7 vertices, 21 edges>
3152+ gap> VertexConnectivity(D);
3153+ 2
3154+ gap> ForAny(Combinations(DigraphVertices(D), 1 ),
3155+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3156+ > Difference(DigraphVertices(D), x))));
3157+ false
3158+ gap> ForAny(Combinations(DigraphVertices(D), 2 ),
3159+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3160+ > Difference(DigraphVertices(D), x))));
3161+ true
3162+ gap> D := Digraph([[ 2 , 3 ] , [ 3 , 5 ] , [ 1 , 2 , 4 ] , [ 2 , 3 ] , [ 3 ]] );
3163+ < immutable digraph with 5 vertices, 10 edges>
3164+ gap> VertexConnectivity(D);
3165+ 2
3166+ gap> ForAny(Combinations(DigraphVertices(D), 1 ),
3167+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3168+ > Difference(DigraphVertices(D), x))));
3169+ false
3170+ gap> ForAny(Combinations(DigraphVertices(D), 2 ),
3171+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3172+ > Difference(DigraphVertices(D), x))));
3173+ true
3174+ gap> D := DigraphFromGraph6String(" NoCQ@?EAS_C`QA?c_Kg" );;
3175+ gap> VertexConnectivity(D);
3176+ 3
3177+ gap> ForAny(Combinations(DigraphVertices(D), 2 ),
3178+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3179+ > Difference(DigraphVertices(D), x))));
3180+ false
3181+ gap> ForAny(Combinations(DigraphVertices(D), 3 ),
3182+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3183+ > Difference(DigraphVertices(D), x))));
3184+ true
3185+ gap> D := DigraphFromGraph6String(" HoStIv{" );;
3186+ gap> VertexConnectivity(D);
3187+ 4
3188+ gap> ForAny(Combinations(DigraphVertices(D), 3 ),
3189+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3190+ > Difference(DigraphVertices(D), x))));
3191+ false
3192+ gap> ForAny(Combinations(DigraphVertices(D), 4 ),
3193+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3194+ > Difference(DigraphVertices(D), x))));
3195+ true
3196+ gap> D := PancakeGraph(4 );
3197+ gap> ForAny(Combinations(DigraphVertices(D), 2 ),
3198+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3199+ > Difference(DigraphVertices(D), x))));
3200+ false
3201+ gap> ForAny(Combinations(DigraphVertices(D), 3 ),
3202+ > x -> not IsConnectedDigraph(InducedSubdigraph(D,
3203+ > Difference(DigraphVertices(D), x))));
3204+ true
3205+
31173206# Semimodular lattices
31183207gap> D := DigraphFromDigraph6String(" &C[o?" );
31193208< immutable digraph with 4 vertices, 5 edges>
0 commit comments