@@ -191,51 +191,27 @@ def node_edge_centrality(
191191 max_iter = 100 ,
192192 tol = 1e-6 ,
193193):
194- """Computes edge centralities.
194+ """Edge component of the nonlinear node-edge centrality.
195+
196+ See :func:`xgi.algorithms.centrality.node_edge_centrality` for the definition,
197+ parameters, and references.
195198
196199 Parameters
197200 ----------
198201 net : Hypergraph
199- The hypergraph of interest
202+ The hypergraph of interest.
200203 bunch : Iterable
201- Edges in `net`
202- f : lambda function, default: x^2
203- The function f as described in Tudisco and Higham.
204- Must accept a numpy array.
205- g : lambda function, default: x^0.5
206- The function g as described in Tudisco and Higham.
207- Must accept a numpy array.
208- phi : lambda function, default: x^2
209- The function phi as described in Tudisco and Higham.
210- Must accept a numpy array.
211- psi : lambda function, default: x^0.5
212- The function psi as described in Tudisco and Higham.
213- Must accept a numpy array.
214- max_iter : int, default: 100
215- Number of iterations at which the algorithm terminates
216- if convergence is not reached.
217- tol : float > 0, default: 1e-6
218- The total allowable error in the node and edge centralities.
204+ Edges in `net`.
219205
220206 Returns
221207 -------
222- dict, dict
223- The edge centrality where keys are the edge IDs and values are
224- associated centralities.
225-
226- Notes
227- -----
228- In the paper from which this was taken, it is more general in that it includes
229- general functions for both nodes and edges, nodes and edges may be weighted,
230- and one can choose different norms for normalization.
208+ dict
209+ Edge centralities.
231210
232- This method does not output the node centralities even though they are computed.
211+ See Also
212+ --------
213+ ~xgi.algorithms.centrality.node_edge_centrality
233214
234- References
235- ----------
236- Node and edge nonlinear eigenvector centrality for hypergraphs,
237- Francesco Tudisco & Desmond J. Higham,
238- https://doi.org/10.1038/s42005-021-00704-2
239215 """
240216 _ , c = xgi .node_edge_centrality (net , f , g , phi , psi , max_iter , tol )
241217 return {e : c [e ] for e in c if e in bunch }
0 commit comments