File tree Expand file tree Collapse file tree 3 files changed +54
-1
lines changed Expand file tree Collapse file tree 3 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 3593
3593
"return_type" : " float"
3594
3594
},
3595
3595
"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."
3596
3628
}
3597
3629
]
Original file line number Diff line number Diff line change 1
1
import json
2
+ import os
3
+ from pathlib import Path
2
4
from textwrap import dedent
3
5
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 :
5
10
functions = json .load (f )
6
11
7
12
fw .write (
Original file line number Diff line number Diff line change @@ -1989,3 +1989,19 @@ These all assume that an object of :class:`.GraphDataScience` is available as `g
1989
1989
1990
1990
Given two nodes, calculate Total Neighbors
1991
1991
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
+
You can’t perform that action at this time.
0 commit comments