Skip to content

ftree file generates Network Navigator #330

Answered by antoneri
minghong asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

The specification for the ftree format can be found here: https://www.mapequation.org/infomap/#OutputTree

Are you using Infomap? Then you can use the --ftree or --output ftree option.
In the Python API, you use

from infomap import Infomap
im = Infomap(ftree=True)

If you want to generate an ftree file from another source than Infomap, then it's a bit more work.

Here's an example, for the karate club network on Infomap Online, we get the following file:

# v2.6.1
# ./Infomap karate . --clu --ftree
# started at 2023-02-01 15:37:10
# completed in 0.047 s
# partitioned into 2 levels with 3 top modules
# codelength 4.08742 bits
# relative codelength savings 11.7951%
# flow model undirected
#…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by minghong
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants