Beispiel #1
0
def _cycle_graph(parameterValues):
    '''Convert a list of values to a graph that connects adgacent values with wraparound'''
    graph = Graph()
    graph.add_cycle(parameterValues)
    assert len(graph.nodes())>0, "Generated an empty graph. Is parameterValues empty?"
    return graph