Skip to content

Commit 7cb381e

Browse files
committed
Document clique counting
1 parent 86faf50 commit 7cb381e

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

doc/sphinx/algorithms.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3593,5 +3593,37 @@
35933593
"return_type": "float"
35943594
},
35953595
"description": "Given two nodes, calculate Total Neighbors"
3596+
},
3597+
{
3598+
"function": {
3599+
"name": "gds.cliqueCounting.mutate",
3600+
"signature": "G: Graph, **config: Any",
3601+
"return_type": "DataFrame"
3602+
},
3603+
"description": "The Clique Counting algorithm count the number of cliques of each size for every node in the graph."
3604+
},
3605+
{
3606+
"function": {
3607+
"name": "gds.cliqueCounting.stats",
3608+
"signature": "G: Graph, **config: Any",
3609+
"return_type": "DataFrame"
3610+
},
3611+
"description": "The Clique Counting algorithm count the number of cliques of each size for every node in the graph."
3612+
},
3613+
{
3614+
"function": {
3615+
"name": "gds.cliqueCounting.stream",
3616+
"signature": "G: Graph, **config: Any",
3617+
"return_type": "DataFrame"
3618+
},
3619+
"description": "The Clique Counting algorithm count the number of cliques of each size for every node in the graph."
3620+
},
3621+
{
3622+
"function": {
3623+
"name": "gds.cliqueCounting.write",
3624+
"signature": "G: Graph, **config: Any",
3625+
"return_type": "DataFrame"
3626+
},
3627+
"description": "The Clique Counting algorithm count the number of cliques of each size for every node in the graph."
35963628
}
35973629
]

doc/sphinx/create_algorithms_rst.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import json
2+
import os
3+
from pathlib import Path
24
from textwrap import dedent
35

4-
with open("algorithms.json") as f, open("source/algorithms.rst", "w") as fw:
6+
root_dir = Path(__file__).parent
7+
8+
9+
with open(root_dir / "algorithms.json") as f, open(root_dir / "source/algorithms.rst", "w") as fw:
510
functions = json.load(f)
611

712
fw.write(

doc/sphinx/source/algorithms.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,3 +1989,19 @@ These all assume that an object of :class:`.GraphDataScience` is available as `g
19891989
19901990
Given two nodes, calculate Total Neighbors
19911991

1992+
.. py:function:: gds.cliqueCounting.mutate(G: Graph, **config: Any) -> DataFrame
1993+
1994+
The Clique Counting algorithm count the number of cliques of each size for every node in the graph.
1995+
1996+
.. py:function:: gds.cliqueCounting.stats(G: Graph, **config: Any) -> DataFrame
1997+
1998+
The Clique Counting algorithm count the number of cliques of each size for every node in the graph.
1999+
2000+
.. py:function:: gds.cliqueCounting.stream(G: Graph, **config: Any) -> DataFrame
2001+
2002+
The Clique Counting algorithm count the number of cliques of each size for every node in the graph.
2003+
2004+
.. py:function:: gds.cliqueCounting.write(G: Graph, **config: Any) -> DataFrame
2005+
2006+
The Clique Counting algorithm count the number of cliques of each size for every node in the graph.
2007+

0 commit comments

Comments
 (0)