def generateStateNetworkFromPaths(inputFilename, outputFilename, markovOrder): network = infomap.Network( "--directed --path-markov-order {}".format(markovOrder)) print("Reading {}...".format(inputFilename)) network.readInputData(inputFilename) print("Writing {}...".format(outputFilename)) network.writeStateNetwork(outputFilename)
def generateStateNetworkFromPaths(inputFilename, outputFilename, markovOrder): network = infomap.Network( infomap.Config( "--directed --path-markov-order {}".format(markovOrder))) network.readInputData(inputFilename) network.writeStateNetwork(outputFilename) print("State network of order {} written to {}".format( markovOrder, outputFilename))