Skip to content

Commit 86faf50

Browse files
Merge pull request #929 from AlfredClemedtson/add-clique-counting
Add clique counting
2 parents e25f7a6 + 0234fa6 commit 86faf50

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

doc/sphinx/algorithms.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,38 @@
11501150
},
11511151
"description": "Returns an estimation of the memory consumption for that procedure."
11521152
},
1153+
{
1154+
"function": {
1155+
"name": "gds.cliqueCounting.mutate",
1156+
"signature": "G: Graph, **config: Any",
1157+
"return_type": "Series[Any]"
1158+
},
1159+
"description": "Counts the number of cliques, of different size, each node is part of."
1160+
},
1161+
{
1162+
"function": {
1163+
"name": "gds.cliqueCounting.stream",
1164+
"signature": "G: Graph, **config: Any",
1165+
"return_type": "DataFrame"
1166+
},
1167+
"description": "Counts the number of cliques, of different size, each node is part of."
1168+
},
1169+
{
1170+
"function": {
1171+
"name": "gds.cliqueCounting.stats",
1172+
"signature": "G: Graph, **config: Any",
1173+
"return_type": "Series[Any]"
1174+
},
1175+
"description": "Counts the number of cliques, of different size, in the entire graph."
1176+
},
1177+
{
1178+
"function": {
1179+
"name": "gds.cliqueCounting.write",
1180+
"signature": "G: Graph, **config: Any",
1181+
"return_type": "Series[Any]"
1182+
},
1183+
"description": "Counts the number of cliques, of different size, each node is part of."
1184+
},
11531185
{
11541186
"function": {
11551187
"name": "gds.scaleProperties.mutate",

doc/sphinx/source/algorithms.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,22 @@ These all assume that an object of :class:`.GraphDataScience` is available as `g
661661
662662
Returns an estimation of the memory consumption for that procedure.
663663

664+
.. py:function:: gds.cliqueCounting.mutate(G: Graph, **config: Any) -> Series[Any]
665+
666+
Counts the number of cliques, of different size, each node is part of.
667+
668+
.. py:function:: gds.cliqueCounting.stream(G: Graph, **config: Any) -> DataFrame
669+
670+
Counts the number of cliques, of different size, each node is part of.
671+
672+
.. py:function:: gds.cliqueCounting.stats(G: Graph, **config: Any) -> Series[Any]
673+
674+
Counts the number of cliques, of different size, in the entire graph.
675+
676+
.. py:function:: gds.cliqueCounting.write(G: Graph, **config: Any) -> Series[Any]
677+
678+
Counts the number of cliques, of different size, each node is part of.
679+
664680
.. py:function:: gds.scaleProperties.mutate(G: Graph, **config: Any) -> Series[Any]
665681
666682
Scale node properties

0 commit comments

Comments
 (0)