python-igraph API reference

List of all classes, functions and methods in python-igraph

module documentation

Low-level Python interface for the igraph library. Should not be used directly.

Class EdgeSeq Low-level representation of an edge sequence.
Class VertexSeq Low-level representation of a vertex sequence.
Function is_graphical Returns whether a list of degrees can be a degree sequence of some graph, with or without multiple and loop edges, depending on the allowed edge types in the remaining arguments.
Function _compare_communities Undocumented
Function _disjoint_union Undocumented
Function _enter_safelocale _enter_safelocale() -> object --
Function _exit_safelocale _exit_safelocale(locale: object) -> None --
Function _intersection Undocumented
Function _power_law_fit Undocumented
Function _split_join_distance Undocumented
Function _union Undocumented
def is_graphical(out_deg, in_deg=None, loops=False, multiple=False):

Returns whether a list of degrees can be a degree sequence of some graph, with or without multiple and loop edges, depending on the allowed edge types in the remaining arguments.

Parameters
out_degthe list of degrees. For directed graphs, this list must contain the out-degrees of the vertices.
in_degthe list of in-degrees for directed graphs. This parameter must be None for undirected graphs.
loopswhether loop edges are allowed.
multiplewhether multiple edges are allowed.
Returns
True if there exists some graph that can realize the given degree sequence with the given edge types, False otherwise.
def _compare_communities(comm1, comm2, method='vi'):

Undocumented

def _disjoint_union(graphs):

Undocumented

def _enter_safelocale(...):

_enter_safelocale() -> object --

Helper function for the safe_locale() context manager. Do not use directly in your own code.

def _exit_safelocale(...):

_exit_safelocale(locale: object) -> None --

Helper function for the safe_locale() context manager. Do not use directly in your own code.

def _intersection(graphs, edgemaps):

Undocumented

def _power_law_fit(data, xmin=-1, force_continuous=False):

Undocumented

def _split_join_distance(comm1, comm2):

Undocumented

def _union(graphs, edgemaps):

Undocumented