Home | Trees | Indices | Help |
|
---|
|
object --+ | tuple --+ | DyadCensus
Dyad 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 names
mutual
(or mut
), asymmetric
(or
asy
or asym
or asymm
) and
null
.
Examples:
>>> g=Graph.Erdos_Renyi(100, 0.2, directed=True) >>> dc=g.dyad_census() >>> print dc.mutual 179 >>> print dc["asym"] 1609 >>> print tuple(dc), list(dc) (179, 1609, 3162) [179, 1609, 3162] >>> print dc.as_dict() {"mutual": 179, "asymmetric": 1609, "null": 3162}
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
_remap =
|
|
|||
Inherited from |
|
x[y]
|
repr(x)
|
str(x)
|
|
_remap
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 16 21:30:47 2008 | http://epydoc.sourceforge.net |