22
22
23
23
24
24
def get_AT (G , mask = None ):
25
- """A.T"""
25
+ """`` A.T``. """
26
26
A = G ._A
27
27
cache = G ._cache
28
28
if "AT" not in cache :
@@ -31,7 +31,7 @@ def get_AT(G, mask=None):
31
31
32
32
33
33
def get_Up (G , mask = None ):
34
- """select.triu(A)"""
34
+ """`` select.triu(A)``. """
35
35
A = G ._A
36
36
cache = G ._cache
37
37
if "U+" not in cache :
@@ -50,7 +50,7 @@ def get_Up(G, mask=None):
50
50
51
51
52
52
def get_Lp (G , mask = None ):
53
- """select.tril(A)"""
53
+ """`` select.tril(A)``. """
54
54
A = G ._A
55
55
cache = G ._cache
56
56
if "L+" not in cache :
@@ -69,7 +69,7 @@ def get_Lp(G, mask=None):
69
69
70
70
71
71
def get_Um (G , mask = None ):
72
- """select.triu(A, 1)"""
72
+ """`` select.triu(A, 1)``. """
73
73
A = G ._A
74
74
cache = G ._cache
75
75
if "U-" not in cache :
@@ -93,7 +93,7 @@ def get_Um(G, mask=None):
93
93
94
94
95
95
def get_Lm (G , mask = None ):
96
- """select.tril(A, -1)"""
96
+ """`` select.tril(A, -1)``. """
97
97
A = G ._A
98
98
cache = G ._cache
99
99
if "L-" not in cache :
@@ -117,7 +117,7 @@ def get_Lm(G, mask=None):
117
117
118
118
119
119
def get_recip_degreesp (G , mask = None ):
120
- """pair(A & A.T).reduce_rowwise()"""
120
+ """`` pair(A & A.T).reduce_rowwise()``. """
121
121
A = G ._A
122
122
cache = G ._cache
123
123
AT = cache .get ("AT" , A .T )
@@ -159,7 +159,7 @@ def get_recip_degreesp(G, mask=None):
159
159
160
160
161
161
def get_recip_degreesm (G , mask = None ):
162
- """C = select.offdiag(A) ; pair(C & C.T).reduce_rowwise()"""
162
+ """`` C = select.offdiag(A) ; pair(C & C.T).reduce_rowwise()``. """
163
163
A = G ._A
164
164
cache = G ._cache
165
165
if "AT" in cache :
@@ -236,7 +236,7 @@ def get_recip_degreesm(G, mask=None):
236
236
237
237
238
238
def get_total_degreesp (G , mask = None ):
239
- """A.reduce_rowwise(agg.count) + A.reduce_columnwise(agg.count)"""
239
+ """`` A.reduce_rowwise(agg.count) + A.reduce_columnwise(agg.count)``. """
240
240
cache = G ._cache
241
241
if mask is not None :
242
242
if "total_degrees+" in cache :
@@ -266,7 +266,7 @@ def get_total_degreesp(G, mask=None):
266
266
267
267
268
268
def get_total_degreesm (G , mask = None ):
269
- """C = select.offdiag(A) ; C.reduce_rowwise(agg.count) + C.reduce_columnwise(agg.count)"""
269
+ """`` C = select.offdiag(A) ; C.reduce_rowwise(agg.count) + C.reduce_columnwise(agg.count)``. """
270
270
cache = G ._cache
271
271
if mask is not None :
272
272
if "total_degrees-" in cache :
@@ -296,7 +296,7 @@ def get_total_degreesm(G, mask=None):
296
296
297
297
298
298
def get_total_recipp (G , mask = None ):
299
- """pair(A & A.T).reduce_scalar()"""
299
+ """`` pair(A & A.T).reduce_scalar()``. """
300
300
A = G ._A
301
301
cache = G ._cache
302
302
if "total_recip+" not in cache :
@@ -315,7 +315,7 @@ def get_total_recipp(G, mask=None):
315
315
316
316
317
317
def get_total_recipm (G , mask = None ):
318
- """C = select.offdiag(A) ; pair(C & C.T).reduce_scalar()"""
318
+ """`` C = select.offdiag(A) ; pair(C & C.T).reduce_scalar()``. """
319
319
cache = G ._cache
320
320
if "total_recip-" not in cache :
321
321
if "total_recip+" in cache and cache .get ("has_self_edges" ) is False :
@@ -330,7 +330,7 @@ def get_total_recipm(G, mask=None):
330
330
331
331
332
332
def has_self_edges (G , mask = None ):
333
- """A.diag().nvals > 0"""
333
+ """`` A.diag().nvals > 0``. """
334
334
A = G ._A
335
335
cache = G ._cache
336
336
if "has_self_edges" not in cache :
0 commit comments