py3plex.algorithms.infomap package¶
Submodules¶
py3plex.algorithms.infomap.infomap module¶
-
class
py3plex.algorithms.infomap.infomap.Bigram(first=0, second=0)¶ Bases:
object-
property
first¶
-
property
second¶
-
property
-
class
py3plex.algorithms.infomap.infomap.BipartiteLink(featureNode=0, node=0, swapOrder=False)¶ Bases:
object-
property
featureNode¶
-
property
node¶
-
property
swapOrder¶
-
property
-
class
py3plex.algorithms.infomap.infomap.ChildEdge(source, target, flow)¶ Bases:
object-
property
flow¶
-
property
source¶
-
property
target¶
-
property
-
class
py3plex.algorithms.infomap.infomap.ChildIterator(*args)¶ Bases:
object-
addChild(child)¶
-
base()¶
-
childDegree()¶
-
property
childEdges¶
-
childIndex()¶
-
property
children¶
-
clear()¶
-
createChildEdge(sourceIndex, targetIndex, flow, directed)¶
-
property
data¶
-
property
depth¶
-
property
depthBelow¶
-
deserialize(dataStream)¶
-
deserializeEdges(dataStream, directedEdges)¶
-
firstChild()¶
-
property
id¶
-
isEnd()¶
-
property
isLeaf¶
-
isLeafModule()¶
-
isLeafNode()¶
-
property
isMemoryNode¶
-
lastChild()¶
-
nextSibling()¶
-
numSerializableChildEdges()¶
-
property
originalLeafIndex¶
-
property
parentIndex¶
-
property
parentNode¶
-
property
physIndex¶
-
printState(indexOffset=0)¶
-
serializationSize(writeEdges)¶
-
serialize(outFile, childPosition, writeEdges)¶
-
property
skip¶
-
property
stateIndex¶
-
stepForward()¶
-
-
class
py3plex.algorithms.infomap.infomap.ComplementaryData(n1, n2, weight)¶ Bases:
object-
addExactMatch(missing, weight)¶
-
addPartialMatch(missing, weight)¶
-
addShiftedMatch(missing, weight)¶
-
property
exactMatch¶
-
property
incompleteLink¶
-
property
partialMatch¶
-
property
shiftedMatch¶
-
property
sumWeightExactMatch¶
-
property
sumWeightPartialMatch¶
-
property
sumWeightShiftedMatch¶
-
-
class
py3plex.algorithms.infomap.infomap.Config(*args)¶ Bases:
object-
adaptDefaults()¶
-
property
additionalInput¶
-
property
alternateCoarseTuneLevel¶
-
property
benchmark¶
-
property
bipartite¶
-
property
clusterDataFile¶
-
property
coarseTuneLevel¶
-
property
completeDanglingMemoryNodes¶
-
property
coreLoopLimit¶
-
property
directed¶
-
elapsedTime()¶
-
property
fastCoarseTunePartition¶
-
property
fastFirstIteration¶
-
property
fastHierarchicalSolution¶
-
property
hardPartitions¶
-
haveModularResultOutput()¶
-
haveOutput()¶
-
property
hideBipartiteNodes¶
-
property
ignoreEdgeWeights¶
-
property
includeSelfLinks¶
-
property
innerParallelization¶
-
property
inputFormat¶
-
is3gram()¶
-
isBipartite()¶
-
isMemoryInput()¶
-
isMemoryNetwork()¶
-
isMultiplexNetwork()¶
-
isSimulatedMemoryNetwork()¶
-
isStateNetwork()¶
-
isUndirected()¶
-
isUndirectedFlow()¶
-
property
levelAggregationLimit¶
-
property
lowMemoryPriority¶
-
property
markovTime¶
-
property
maxNodeIndexVisible¶
-
property
minBipartiteNodeIndex¶
-
property
minimumCodelengthImprovement¶
-
property
minimumRelativeTuneIterationImprovement¶
-
property
minimumSingleNodeCodelengthImprovement¶
-
property
multiplexAddMissingNodes¶
-
property
multiplexJSRelaxLimit¶
-
property
multiplexJSRelaxRate¶
-
property
multiplexRelaxLimit¶
-
property
multiplexRelaxRate¶
-
property
networkFile¶
-
property
noFileOutput¶
-
property
noInfomap¶
-
property
nodeLimit¶
-
property
nonBacktracking¶
-
property
numTrials¶
-
property
originallyUndirected¶
-
property
outDirectory¶
-
property
outName¶
-
property
outdirdir¶
-
parseAsUndirected()¶
-
property
parseWithoutIOStreams¶
-
property
parsedArgs¶
-
property
preClusterMultiplex¶
-
property
preferredNumberOfModules¶
-
property
printAllTrials¶
-
printAsUndirected()¶
-
property
printBinaryFlowTree¶
-
property
printBinaryTree¶
-
property
printClu¶
-
property
printExpanded¶
-
property
printFlowNetwork¶
-
property
printFlowTree¶
-
property
printMap¶
-
property
printNodeRanks¶
-
property
printPajekNetwork¶
-
property
printStateNetwork¶
-
property
printTree¶
-
property
randomizeCoreLoopLimit¶
-
property
rawdir¶
-
property
recordedTeleportation¶
-
reset()¶
-
property
resetConfigBeforeRecursion¶
-
property
seedToRandomNumberGenerator¶
-
property
selfTeleportationProbability¶
-
setOptimizationLevel(level)¶
-
setUndirected()¶
-
property
showBiNodes¶
-
property
silent¶
-
property
skipAdjustBipartiteFlow¶
-
property
startDate¶
-
property
teleportToNodes¶
-
property
teleportationProbability¶
-
property
tuneIterationLimit¶
-
property
twoLevel¶
-
property
undirdir¶
-
useTeleportation()¶
-
property
variableMarkovTime¶
-
property
verboseNumberPrecision¶
-
property
verbosity¶
-
property
version¶
-
property
weightThreshold¶
-
property
withMemory¶
-
property
zeroBasedNodeNumbers¶
-
-
class
py3plex.algorithms.infomap.infomap.Date(*args)¶ Bases:
object
-
class
py3plex.algorithms.infomap.infomap.EdgeComp¶ Bases:
object
-
class
py3plex.algorithms.infomap.infomap.ElapsedTime(elapsedTime)¶ Bases:
object-
SECONDS_IN_AN_HOUR= 3600¶
-
SECONDS_IN_A_DAY= 86400¶
-
SECONDS_IN_A_MINUTE= 60¶
-
getDays()¶
-
getHours()¶
-
getMinutes()¶
-
getSeconds()¶
-
-
class
py3plex.algorithms.infomap.infomap.HierarchicalNetwork(conf)¶ Bases:
object-
addLeafEdge(sourceLeafNodeIndex, targetLeafNodeIndex, flow)¶
-
addLeafNode(*args)¶
-
addNode(parent, flow, exitFlow)¶
-
clear(*args)¶
-
codelength()¶
-
getRootNode()¶
-
init(networkName, codelength, oneLevelCodelength)¶
-
leafIter(moduleIndexDepth=-1)¶
-
maxDepth()¶
-
numLeafEdges()¶
-
numLeafNodes()¶
-
numNodesInTree()¶
-
numTopModules()¶
-
onelevelCodelength()¶
-
prepareAddLeafNodes(numLeafNodes)¶
-
propagateNodeNameUpInHierarchy(node)¶
-
readHumanReadableTree(fileName)¶
-
readStreamableTree(fileName)¶
-
treeIter(moduleIndexDepth=-1)¶
-
writeClu(fileName, moduleIndexDepth=1)¶
-
writeHumanReadableTree(fileName, writeHierarchicalNetworkEdges=False)¶
-
writeMap(fileName)¶
-
writeStreamableTree(fileName, writeEdges)¶
-
-
class
py3plex.algorithms.infomap.infomap.Infomap(flags)¶ Bases:
object-
addLink(n1, n2, weight=1.0)¶
-
property
config¶
-
property
network¶
-
readInputData(filename)¶
-
run()¶
-
setBipartiteNodesFrom(bipartiteStartIndex)¶
-
property
tree¶
-
-
class
py3plex.algorithms.infomap.infomap.LeafIterator(*args)¶ Bases:
object-
addChild(child)¶
-
base()¶
-
childDegree()¶
-
property
childEdges¶
-
property
children¶
-
clear()¶
-
createChildEdge(sourceIndex, targetIndex, flow, directed)¶
-
property
data¶
-
depth()¶
-
property
depthBelow¶
-
deserialize(dataStream)¶
-
deserializeEdges(dataStream, directedEdges)¶
-
firstChild()¶
-
property
id¶
-
isEnd()¶
-
property
isLeaf¶
-
isLeafModule()¶
-
isLeafNode()¶
-
property
isMemoryNode¶
-
lastChild()¶
-
moduleIndex()¶
-
next()¶
-
nextSibling()¶
-
numSerializableChildEdges()¶
-
property
originalLeafIndex¶
-
property
parentIndex¶
-
property
parentNode¶
-
property
physIndex¶
-
printState(indexOffset=0)¶
-
serializationSize(writeEdges)¶
-
serialize(outFile, childPosition, writeEdges)¶
-
property
skip¶
-
property
stateIndex¶
-
stepForward()¶
-
-
class
py3plex.algorithms.infomap.infomap.Link(*args)¶ Bases:
object-
property
n1¶
-
property
n2¶
-
property
weight¶
-
property
-
class
py3plex.algorithms.infomap.infomap.MemInfomap(flags)¶ Bases:
object-
addMultiplexLink(layer1, node1, layer2, node2, weight=1.0)¶
-
addStateLink(n1PriorState, n1, n2PriorState, n2, weight=1.0)¶
-
addTrigram(n1, n2, n3, weight=1.0)¶
-
property
config¶
-
property
network¶
-
readInputData(filename)¶
-
run()¶
-
property
tree¶
-
-
class
py3plex.algorithms.infomap.infomap.MemNetwork(*args)¶ Bases:
py3plex.algorithms.infomap.infomap.Network-
addStateLink(*args)¶
-
addStateNode(*args)¶
-
disposeLinks()¶
-
finalizeAndCheckNetwork(printSummary=True)¶
-
numPhysicalNodes()¶
-
numStateLinks()¶
-
numStateNodes()¶
-
printNetworkAsPajek(filename)¶
-
printParsingResult(includeFirstOrderData=False)¶
-
printStateNetwork(filename)¶
-
readInputData(*args)¶
-
stateLinkMap()¶
-
stateNodeMap()¶
-
stateNodeWeights()¶
-
stateNodes()¶
-
totalMemorySelfLinkWeight()¶
-
totalStateLinkWeight()¶
-
totalStateNodeWeight()¶
-
-
class
py3plex.algorithms.infomap.infomap.MultiplexNetwork(*args)¶ Bases:
py3plex.algorithms.infomap.infomap.MemNetwork-
addMemoryNetworkFromMultiplexLinks()¶
-
addMultiplexLink(layer1, node1, layer2, node2, w)¶
-
finalizeAndCheckNetwork(printSummary=True)¶
-
readInputData(*args)¶
-
-
class
py3plex.algorithms.infomap.infomap.Network(*args)¶ Bases:
object-
addBipartiteLink(*args)¶
-
addLink(n1, n2, weight=1.0)¶
-
addNode(nodeIndex)¶
-
addNodes(names)¶
-
config()¶
-
disposeLinks()¶
-
finalizeAndCheckNetwork(printSummary=True, desiredNumberOfNodes=0)¶
-
generateOppositeLinkMap(oppositeLinks)¶
-
getParsingResultSummary()¶
-
haveNode(nodeIndex)¶
-
initNodeNames()¶
-
isBipartite()¶
-
isFinalized()¶
-
linkMap()¶
-
nodeNames()¶
-
nodeWeights()¶
-
numBipartiteNodes()¶
-
numLinks()¶
-
numNodes()¶
-
outDegree()¶
-
printNetworkAsPajek(filename)¶
-
printParsingResult(onlySummary=False)¶
-
printStateNetwork(filename)¶
-
readInputData(*args)¶
-
setBipartiteNodesFrom(bipartiteStartIndex)¶
-
setConfig(config)¶
-
sumLinkOutWeight()¶
-
sumNodeWeights()¶
-
swapNodeNames(target)¶
-
totalLinkWeight()¶
-
totalSelfLinkWeight()¶
-
-
class
py3plex.algorithms.infomap.infomap.NodeData(*args)¶ Bases:
object-
property
danglingFlow¶
-
property
enterFlow¶
-
property
exitFlow¶
-
property
flow¶
-
property
indexCodelength¶
-
property
moduleCodelength¶
-
property
name¶
-
property
teleportRate¶
-
property
-
class
py3plex.algorithms.infomap.infomap.SNode(*args)¶ Bases:
object-
addChild(child)¶
-
childDegree()¶
-
property
childEdges¶
-
property
children¶
-
clear()¶
-
createChildEdge(sourceIndex, targetIndex, flow, directed)¶
-
property
data¶
-
property
depth¶
-
property
depthBelow¶
-
deserialize(dataStream)¶
-
deserializeEdges(dataStream, directedEdges)¶
-
firstChild()¶
-
property
id¶
-
property
isLeaf¶
-
isLeafModule()¶
-
isLeafNode()¶
-
property
isMemoryNode¶
-
lastChild()¶
-
nextSibling()¶
-
numSerializableChildEdges()¶
-
property
originalLeafIndex¶
-
property
parentIndex¶
-
property
parentNode¶
-
property
physIndex¶
-
printState(indexOffset=0)¶
-
serializationSize(writeEdges)¶
-
serialize(outFile, childPosition, writeEdges)¶
-
property
skip¶
-
property
stateIndex¶
-
-
class
py3plex.algorithms.infomap.infomap.StateNodeMap(*args)¶ Bases:
object-
asdict()¶
-
begin()¶
-
clear()¶
-
count(x)¶
-
empty()¶
-
end()¶
-
erase(*args)¶
-
find(x)¶
-
get_allocator()¶
-
has_key(key)¶
-
items()¶
-
iterator()¶
-
iteritems()¶
-
iterkeys()¶
-
itervalues()¶
-
key_iterator()¶
-
keys()¶
-
lower_bound(x)¶
-
rbegin()¶
-
rend()¶
-
size()¶
-
swap(v)¶
-
upper_bound(x)¶
-
value_iterator()¶
-
values()¶
-
-
class
py3plex.algorithms.infomap.infomap.StringVector(*args)¶ Bases:
object-
append(x)¶
-
assign(n, x)¶
-
back()¶
-
begin()¶
-
capacity()¶
-
clear()¶
-
empty()¶
-
end()¶
-
erase(*args)¶
-
front()¶
-
get_allocator()¶
-
insert(*args)¶
-
iterator()¶
-
pop()¶
-
pop_back()¶
-
push_back(x)¶
-
rbegin()¶
-
rend()¶
-
reserve(n)¶
-
resize(*args)¶
-
size()¶
-
swap(v)¶
-
-
class
py3plex.algorithms.infomap.infomap.SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance(n)¶
-
copy()¶
-
decr(n=1)¶
-
distance(x)¶
-
equal(x)¶
-
incr(n=1)¶
-
next()¶
-
previous()¶
-
value()¶
-
-
class
py3plex.algorithms.infomap.infomap.TreeIterator(*args)¶ Bases:
object-
addChild(child)¶
-
base()¶
-
childDegree()¶
-
property
childEdges¶
-
property
children¶
-
clear()¶
-
createChildEdge(sourceIndex, targetIndex, flow, directed)¶
-
property
data¶
-
depth()¶
-
property
depthBelow¶
-
deserialize(dataStream)¶
-
deserializeEdges(dataStream, directedEdges)¶
-
firstChild()¶
-
property
id¶
-
isEnd()¶
-
property
isLeaf¶
-
isLeafModule()¶
-
isLeafNode()¶
-
property
isMemoryNode¶
-
lastChild()¶
-
moduleIndex()¶
-
next()¶
-
nextSibling()¶
-
numSerializableChildEdges()¶
-
property
originalLeafIndex¶
-
property
parentIndex¶
-
property
parentNode¶
-
path()¶
-
property
physIndex¶
-
printState(indexOffset=0)¶
-
serializationSize(writeEdges)¶
-
serialize(outFile, childPosition, writeEdges)¶
-
property
skip¶
-
property
stateIndex¶
-
stepForward()¶
-
-
class
py3plex.algorithms.infomap.infomap.Triple(*args)¶ Bases:
object-
property
n1¶
-
property
n2¶
-
property
n3¶
-
property
-
class
py3plex.algorithms.infomap.infomap.UIntDeque(*args)¶ Bases:
object-
append(x)¶
-
assign(n, x)¶
-
back()¶
-
begin()¶
-
clear()¶
-
empty()¶
-
end()¶
-
erase(*args)¶
-
front()¶
-
get_allocator()¶
-
insert(*args)¶
-
iterator()¶
-
pop()¶
-
pop_back()¶
-
pop_front()¶
-
push_back(x)¶
-
push_front(x)¶
-
rbegin()¶
-
rend()¶
-
resize(*args)¶
-
size()¶
-
swap(v)¶
-