List of all classes, functions and methods in python-igraph
class TriadCensus(tuple):
Triad census of a graph.
This is a pretty simple class - basically it is a tuple, but it allows the user to refer to its individual items by the following triad names:
Attribute and item accessors are provided. Due to the syntax of Python, attribute names are not allowed to start with a number, therefore the triad names must be prepended with a lowercase t when accessing them as attributes. This is not necessary with the item accessor syntax.
Examples:
>>> from igraph import Graph >>> g=Graph.Erdos_Renyi(100, 0.2, directed=True) >>> tc=g.triad_census() >>> print(tc.t003) #doctest:+SKIP 39864 >>> print(tc["030C"]) #doctest:+SKIP 1206
Method | __getattr__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Class Variable | _remap |
Undocumented |