networkit.plot

networkit.plot.clusteringPerDegree(G, **kwargs)

Plots the local clustering coefficient for nodes with specific degree.

Parameters
  • G (networkit.Graph) – The input graph.

  • **kwargs (**kwargs) – Input parameter currently not used.

networkit.plot.connectedComponentsSizes(G, **kwargs)

Plot the size distribution of connected components as a pie chart using matplotlib.

Parameters
  • G (networkit.Graph) – The input graph.

  • **kwargs (**kwargs) – Input parameter currently not used.

networkit.plot.coreDecompositionSequence(G, **kwargs)

Plots the core decomposition sequence of G, i.e. the size of the k-shell for the core number k using matplotlib.

Parameters
  • G (networkit.Graph) – The input graph.

  • **kwargs (**kwargs) – Input parameter currently not used.

networkit.plot.degreeDistribution(G, **kwargs)

Plots the degree distribution of the given network using matplotlib.

Parameters
  • G (networkit.Graph) – The input graph.

  • **kwargs (**kwargs) – Input data currently not used.

networkit.plot.hopPlot(G, **kwargs)

Prints the hop-plot using matplotlib.

Parameters
  • G (networkit.Graph) – The input graph.

  • **kwargs (**kwargs) – Input parameter currently not used.

networkit.plot.nodeProperty(data, label, sorted=True, yscale='linear', xscale='linear')

General plotting function for a node property using matplotlib.

Parameters
  • data (*kargs) – Input data for matplotlib.plot function. Refer to offical documentation for details: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html

  • label (list(str)) – Label for data points.

  • sorted (bool, optional) – Indicates whether the plotted data points should be sorted. Default: True

  • yscale (str, optional) – Indicates the scaling of y-axis. Default: True

  • xscale (str, optional) – Indicates the scaling of x-axis. Default: True