igraph library.
adjacency
No module docstring; 5/5 functions documented
app
User interfaces of igraph
automorphisms
No module docstring; 2/2 functions documented
basic
No module docstring; 8/8 functions documented
bipartite
No module docstring; 3/3 functions documented
clustering
Classes related to graph clustering.
community
No module docstring; 13/13 functions documented
configuration
Configuration framework for igraph.
cut
Classes representing cuts and flows on graphs.
datatypes
Additional auxiliary data types
drawing
Drawing and plotting routines for igraph.
formula
Implementation of igraph.Graph.Formula() .
io
Undocumented
layout
Layout-related code in the igraph library.
matching
Classes representing matchings on graphs.
operators
Implementation of union, disjoint union and intersection operators.
remote
Classes that help igraph communicate with remote applications.
seq
No module docstring; 1/2 function documented
sparse_matrix
Implementation of Python-level sparse matrix operations.
statistics
Statistics related stuff in igraph
structural
No module docstring; 5/5 functions documented
summary
Summary representation of a graph.
utils
Utility functions that cannot be categorised anywhere else.
version
Undocumented
_igraph
Low-level Python interface for the igraph library. Should not be used directly.
From __init__.py:
ARPACKOptions
Class representing the parameters of the ARPACK module.
BFSIter
igraph BFS iterator object
Clustering
Class representing a clustering of an arbitrary ordered set.
CohesiveBlocks
The cohesive block structure of a graph.
Configuration
Class representing igraph configuration details.
Cover
Class representing a cover of an arbitrary ordered set.
Cut
A cut of a given graph.
Dendrogram
The hierarchical clustering (dendrogram) of some dataset.
DFSIter
igraph DFS iterator object
DyadCensus
Dyad census of a graph.
Edge
Class representing a single edge in a graph.
EdgeSeq
Class representing a sequence of edges in the graph.
Flow
A flow of a given graph.
Graph
Generic graph.
GraphBase
Low-level representation of a graph.
InternalError
Undocumented
Matching
A matching of vertices in a graph.
TriadCensus
Triad census of a graph.
UniqueIdGenerator
A dictionary-like class that can be used to assign unique IDs to names (say, vertex names).
Vertex
Class representing a single vertex in a graph.
VertexClustering
The clustering of the vertex set of a graph.
VertexCover
The cover of the vertex set of a graph.
VertexDendrogram
The dendrogram resulting from the hierarchical clustering of the vertex set of a graph.
VertexSeq
Class representing a sequence of vertices in the graph.
community_to_membership
Undocumented
compare_communities
Compares two community structures using various distance measures.
convex_hull
Calculates the convex hull of a given point set.
deprecated
Prints a warning message related to the deprecation of some igraph feature.
get_include
Returns the folder that contains the C API headers of the Python interface of igraph.
is_degree_sequence
Deprecated since 0.9 in favour of is_graphical() .
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.
is_graphical_degree_sequence
Deprecated since 0.9 in favour of is_graphical() .
read
Loads a graph from the given filename.
set_progress_handler
Sets the handler to be called when igraph is performing a long operation.
set_random_number_generator
Sets the random number generator used by igraph.
set_status_handler
Sets the handler to be called when igraph tries to display a status message.
split_join_distance
Calculates the split-join distance between two community structures.
write
Saves a graph to the given file.
__license__
Undocumented
config
The main configuration object of igraph. Use this object to modify igraph's behaviour, typically when used in interactive mode.
Undocumented
Undocumented
Calculates the convex hull of a given point set.
Deprecated since 0.9 in favour of is_graphical() .
Returns whether a list of degrees can be a degree sequence of some graph.
Note that it is not required for the graph to be simple; in other words, this function may return True for degree sequences that can be realized using one or more multiple or loop edges only.
In particular, this function checks whether
- all the degrees are non-negative
- for undirected graphs, the sum of degrees are even
- for directed graphs, the two degree sequences are of the same length and equal sums
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.
Deprecated since 0.9 in favour of is_graphical() .
Returns whether a list of degrees can be a degree sequence of some simple graph.
Note that it is required for the graph to be simple; in other words, this function will return False for degree sequences that cannot be realized without using one or more multiple or loop edges.
Sets the handler to be called when igraph is performing a long operation.
Sets the random number generator used by igraph.
Sets the handler to be called when igraph tries to display a status message.
This is used to communicate the progress of some calculations where no reasonable progress percentage can be given (so it is not possible to use the progress handler).
Compares two community structures using various distance measures.
Clustering object.Clustering object.Clustering object was constructed using VertexClustering.FromAttribute using an attribute which was not defined for all the vertices. If remove_none is False, a None entry in either comm1 or comm2 will result in an exception. If remove_none is True, None values are filtered away and only the remaining lists are compared.Calculates the split-join distance between two community structures.
The split-join distance is a distance measure defined on the space of partitions of a given set. It is the sum of the projection distance of one partition from the other and vice versa, where the projection number of A from B is if calculated as follows:
- For each set in A, find the set in B with which it has the maximal overlap, and take note of the size of the overlap.
- Take the sum of the maximal overlap sizes for each set in A.
- Subtract the sum from n, the number of elements in the partition.
Note that the projection distance is asymmetric, that's why it has to be calculated in both directions and then added together. This function returns the projection distance of comm1 from comm2 and the projection distance of comm2 from comm1, and returns them in a pair. The actual split-join distance is the sum of the two distances. The reason why it is presented this way is that one of the elements being zero then implies that one of the partitions is a subpartition of the other (and if it is close to zero, then one of the partitions is close to being a subpartition of the other).
Clustering object.Clustering object.Clustering object was constructed using VertexClustering.FromAttribute using an attribute which was not defined for all the vertices. If remove_none is False, a None entry in either comm1 or comm2 will result in an exception. If remove_none is True, None values are filtered away and only the remaining lists are compared.compare_communities() with method = "split-join" if you are not interested in the individual projection distances but only the sum of them.Prints a warning message related to the deprecation of some igraph feature.
Returns the folder that contains the C API headers of the Python interface of igraph.
Loads a graph from the given filename.
This is just a convenience function, calls Graph.Read directly. All arguments are passed unchanged to Graph.Read
Saves a graph to the given file.
This is just a convenience function, calls Graph.write directly. All arguments are passed unchanged to Graph.write
The main configuration object of igraph. Use this object to modify igraph's behaviour, typically when used in interactive mode.