| igraph Reference Manual |
|---|
int igraph_maxdegree(const igraph_t *graph, igraph_integer_t *res, igraph_vs_t vids, igraph_neimode_t mode, igraph_bool_t loops);
The largest in-, out- or total degree of the specified vertices is calculated.
Arguments:
graph: |
The input graph. |
res: |
Pointer to an integer ( |
mode: |
Defines the type of the degree.
|
loops: |
Boolean, gives whether the self-loops should be counted. |
Returns:
|
Error code:
|
Time complexity: O(v) if loops is TRUE, and O(v*d) otherwise. v is the number vertices for which the degree will be calculated, and d is their (average) degree.
<< 5.6. igraph_constraint — Burt's constraint scores |
5.8. igraph_eigenvector_centrality — Eigenvector centrality of the verices >> |