Module: lopaths.test_graph#

Classes:

GraphTester(fileName[, fileNameEdges, ...])

Functions:

adjust_ticks(xticks, yticks[, fact, hideMid, ax])

arrstr(iterarg)

create_min_paths_graph(data, x, xlabel[, ...])

create_min_paths_graph2(data, x, xlabel[, ...])

split_figure_vertical(figsize_1, ...)

figsize_1 is the size of the figure without the color bar additional_width is the additional width used for the color bar rect_1, rect_2 define where the plotting area and color bar are located in their respective sections of the figure

time_call(f, *args, **kwargs)

timing(f)

class GraphTester(fileName, fileNameEdges=None, preprocessingArgs=None)[source]#

Bases: lopaths.graph.FlowPointGraph

Methods:

get_origin_destination_indices(sourceNo, sinkNo)

new(fileName, fileNameEdges[, restart])

preprocessing([preprocessingArgs])

save([fileName])

test_REVC_LOC([show])

test_REVC_approximations([acceptionFactors, ...])

test_REVC_once(sourceNo, sinkNo, *args[, ...])

test_REVC_range([sourceNo, sinkNo, ...])

test_REVC_range_avg(*args, **kwargs)

test_REVC_repetition(sourceNo, sinkNo, *args)

test_REVC_source_sink([pairBased, show])

test_REVC_stretch([show])

test_optimizations([repetitions, optimizations])

get_origin_destination_indices(sourceNo, sinkNo, trialIndex=None)[source]#
static new(fileName, fileNameEdges, restart=False)[source]#
preprocessing(preprocessingArgs=None)[source]#
save(fileName=None)[source]#
test_REVC_LOC(show=True)[source]#
test_REVC_approximations(acceptionFactors=None, rejectionFactors=None, SoSiNo=100, repetitions=10, show=False)[source]#
test_REVC_once(sourceNo, sinkNo, *args, trialIndex=None)[source]#
test_REVC_range(sourceNo=100, sinkNo=100, stretchConstant=1.5, localOptimalityConstant=0.2, acceptionFactor=0.9, rejectionFactor=1.1, repetitions=10, testing=True, restart=False)[source]#
test_REVC_range_avg(*args, **kwargs)[source]#
test_REVC_repetition(sourceNo, sinkNo, *args, repetitions=10, printResult=True)[source]#
test_REVC_source_sink(pairBased=False, show=True)[source]#
test_REVC_stretch(show=True)[source]#
test_optimizations(repetitions=10, optimizations=None, **kwargs)[source]#
adjust_ticks(xticks, yticks, fact=0.1, hideMid=True, ax=None)[source]#
arrstr(iterarg)[source]#
create_min_paths_graph(data, x, xlabel, xticks=None, maxPathBound=30, xlim=None, colorBar=False)[source]#
create_min_paths_graph2(data, x, xlabel, xticks=None, maxPathBound=30, xlim=None, colorBar=False)[source]#
split_figure_vertical(figsize_1, additional_width, rect_1, rect_2)[source]#

figsize_1 is the size of the figure without the color bar additional_width is the additional width used for the color bar rect_1, rect_2 define where the plotting area and color bar are located in their respective sections of the figure

time_call(f, *args, **kwargs)[source]#
timing(f)[source]#