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 | `_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_deg | the list of degrees. For directed graphs, this list must contain the out-degrees of the vertices. |

in_deg | the list of in-degrees for directed graphs. This parameter must be None for undirected graphs. |

loops | whether loop edges are allowed. |

multiple | whether 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. |