In [10]:
%matplotlib inline
In [11]:
cd ~/workspace/NetworKit/benchmark/
In [12]:
from Benchmark import *
In [12]:
In [13]:
allGraphs = ["PGPgiantcompo", "power", "caidaRouterLevel"]
In [49]:
from scipy import stats
d1 = stats.norm(0, 5).rvs(100)
d2 = numpy.concatenate([stats.gamma(4).rvs(50),
-1 * stats.gamma(4).rvs(50)])
d3 = numpy.concatenate([stats.gamma(4).rvs(50),
-1 * stats.gamma(4).rvs(50)])
data = pandas.DataFrame(dict(d1=d1, d2=d2, d3=d3, d4=d3, d5=d3, d6=d3))
In [65]:
seaborn.boxplot(data, linewidth=1.5, widths=.25, color=seaborn.xkcd_rgb["red orange"], vert=False);
In [57]:
seaborn.boxplot?
In [14]:
graphMeta(allGraphs, graphDir="/Users/cls/workspace/Data/NwkBenchmark/")
Out[14]:
In [15]:
#bench = Bench()
In [16]:
nkdata = {}
In [17]:
%time nkdata["ConnectedComponents"] = algoBenchmark(nk.bConnectedComponents(), allGraphs)
In [18]:
timePlot(nkdata["ConnectedComponents"])
In [19]:
%time nkdata["ParallelConnectedComponents"] = algoBenchmark(nk.bParallelConnectedComponents(), allGraphs)
In [20]:
timePlot(averageRuns(nkdata["ParallelConnectedComponents"]))
In [21]:
%time nkdata["Diameter"] = algoBenchmark(nk.bDiameter(), ["PGPgiantcompo", "power", "caidaRouterLevel"]))
In [ ]:
timePlot(averageRuns(nkdata["Diameter"]))
In [ ]:
#data["Betweenness"] = averageRuns(benchmark(nk.bBetweenness(), ["power"]))
In [ ]:
#timePlot(data["Betweenness"])
In [ ]:
#saveData(pandas.DataFrame(nkdata["ConnectedComponents"]), "nkdata")
In [ ]:
nxdata = {}
In [ ]:
%time nxdata["ConnectedComponents"] = benchmark(nx.bConnectedComponents(), allGraphs)
In [ ]:
timePlot(averageRuns(nxdata["ConnectedComponents"]))
In [ ]: