Questions tagged [networkit]

NetworKit is an open-source toolkit for large-scale network analysis. It includes efficient C++ implementations of graph algorithms, and many of them are parallel to exploit multi-core architectures. These algorithms are meant to compute standard metrics for network analysis such as centrality, clustering coefficient, etc. Use this tag for any questions about how to install the package, or for any clarifications about its algorithms.

NetworKit is an open-source tool suite for high-performance network analysis. Its aim is to provide tools for the analysis of large networks in the size range from thousands to billions of edges. For this purpose, it implements efficient graph algorithms, many of them parallel to utilize multicore architectures. These are meant to compute standard measures of network analysis. NetworKit is focused on scalability and comprehensiveness. NetworKit is also a testbed for algorithm engineering and contains novel algorithms from recently published research (see list of publications below).

NetworKit is also a Python module. High-performance algorithms are written in C++ and exposed to Python via the Cython toolchain. Python in turn gives us the ability to work interactively and a rich environment of tools for data analysis and scientific computing. Furthermore, NetworKit's core can be built and used as a native library if needed.

For more information about NetworKit, please refer to its website or its github page.

33 questions
3
votes
1 answer

How to Cythonize / allow numba.jit on a simple function: (Finding Triangles in network)

Backstory: I have been searching for a highly performant way to find cliques within a network which are below a given dimension (e.g all k-cliques with k<=3 are all nodes, edges, and triangles). As this example of low dimensional cliques (k<=3 or…
chase
  • 3,592
  • 8
  • 37
  • 58
3
votes
1 answer

Usage of forEdges iterator in networkit (python)

I carefully read the docs, but it still is unclear to me how to use G.forEdges(), described as an "experimental edge iterator interface". Let's say that I want to decrease the density of my graph. I have a sorted list of weights, and I want to…
sato
  • 768
  • 1
  • 9
  • 30
2
votes
1 answer

How to prevent Networkit from changing the nodes id when reading an edgelist

I have a csv file that represent a direct graph, it's an edgelist with non continuous id nodes and i read it in a neworkit graph with the method reader = nk.graphio.EdgeListReader(',',1,'#',directed=True,continuous=False) The problem is that…
lilf4p
  • 21
  • 2
2
votes
2 answers

What is the maximum number of nodes and edges with attributes that graphs generated by NetworkX package can handle?

I am writing code in Python to analyze social networks with node and edge attributes. Currently, I am using the NetworkX package to generate the graphs. Is there any limit to the size (in terms of the number of nodes, edges) of the graph which can…
saikatd17
  • 31
  • 1
  • 6
2
votes
1 answer

Retrieving original node names in Networkit

I am not sure I understand how Networkit handles the names of the nodes. Let's say that I read a large graph from an edgelist, using another Python module like Networkx; then I convert it to a Network graph and I perform some operations, like…
sato
  • 768
  • 1
  • 9
  • 30
2
votes
2 answers

Is it possible to create a property graph in NetworKit?

For example, I would like to add some attributes to nodes and edges (say, some labels or any other additional info). Is it possible to do that in NetworKit? Thank you in advance!
elfinorr
  • 189
  • 3
  • 12
2
votes
1 answer

ERROR: NetworKit compilation requires cmake. #288

I use python3.7 and installed minGW has: GCC 8.2.0-3, CMake 3.13.3, Ninja 1.8.2, Cython 0.29.3, but pip install networkit gives the error as follows: C:\Users\anjali\AppData\Local\Programs\Python\Python37\Scripts>pip install networkit Collecting…
1
vote
0 answers

networkit bipartite graph connected components only when 2 or more common edges

I'm new to the graphs, but trying to get my path through. Basically, the idea is very simple - we have "transactions" with multiple "features" and need to assign the same Id to transactions, which have 2 or more common features (same values). The…
1
vote
1 answer

Wrong betweenness in both Networkx and Networkit?

Apparently, both node betweenness and edge betweenness calculated with networkx and networkit give different values than what supposed to be. Lets consider the following undirected graph (pag. 20/85 in these Lecture notes), written as edge list and…
limone
  • 279
  • 2
  • 9
1
vote
1 answer

Errors in installing Networkit on CentOS

Hi, I am trying to install Networkit on a CentOS 7 machine, but I get several errors. Would you be so nice to tell me what is wrong/missing and/or the right commands to type in order to fix the errors please? Currently, I have the following stuff…
limone
  • 279
  • 2
  • 9
1
vote
1 answer

Methods for generating complex network

I have a small graph network and I've been looking for methods that can make use of the structural properties of the small network to generate a complex network. I'd like to use a method that preserves properties such as degree distribution,…
Natasha
  • 1,111
  • 5
  • 28
  • 66
1
vote
1 answer

Error after compiling Python NetworKit script to static binary

I'm using pyinstaller and staticx to compile a Python3.6 script to static binary. I've installed all packages via pip in a virtual environment (venv). Everything works fine until I try to add the line import networkit as nk to the top of my script.…
Scriddie
  • 2,584
  • 1
  • 10
  • 17
1
vote
1 answer

Community detection using Netwokit with PLP and PLM ( Python 3.x )

I'm not able to find a good documentation to use PLP and PLM algoritms. I need to detect community in a graph using networkit's libraries. I've found only this link: https://networkit.iti.kit.edu/api/community.html but I don't understand what kind…
1
vote
1 answer

Networkit graphEvent (python)

Another Networkit question. Seems like this module doesn't get much support (and I certainly don't want to open issues on github just to get help), but you don't get if you don't ask. By reading the docs it seems like there's a lot of functions to…
sato
  • 768
  • 1
  • 9
  • 30
1
vote
0 answers

Failing to import Networkit after successful installation - how to switch to `Homebrew gcc`

I was able (after a bit of a struggle) to install networkit via pip install networkit in a python3.6 anaconda environment (I'm on Mac OSX high sierra). In order for networkit to work I had to install a g++ compiler which supports OpenMp, so I chose…
sato
  • 768
  • 1
  • 9
  • 30
1
2 3