CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418384
gap> START_TEST("HAP library");
gap> n:=100;; Betti1:=[];; Betti2:=[];;
gap> for p in [0..50]*(1/200) do
> G:=RandomSimplicialGraph(n,p);;
> K:=CliqueComplex(G,3);;
> Add(Betti1,[p,BettiNumber(K,1)]);
> Add(Betti2,[p,BettiNumber(K,2)]);
> od;
gap> ScatterPlot(Betti1);
gap> ScatterPlot(Betti2);
gap> STOP_TEST( "tst.tst", 1000 );