Skip to content

Commit

Permalink
added recipe for maximal indices (#522)
Browse files Browse the repository at this point in the history
* added recipe for maximal indices

* Stats argsort (#521)

* added argsort to stats

* added unit tests

* added recipe for maximal indices

* added recipe

* added argsort to docs

* Run isort on notebooks

* Revert "added recipe"

This reverts commit 4ec9db3.

* Update recipes.ipynb
  • Loading branch information
nwlandry authored Mar 4, 2024
1 parent 20fa11f commit 4667614
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 38 deletions.
6 changes: 4 additions & 2 deletions benchmarks/hypernetx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"metadata": {},
"outputs": [],
"source": [
"import time\n",
"\n",
"import hypernetx as hnx\n",
"import xgi\n",
"import pandas as pd\n",
"import time"
"\n",
"import xgi"
]
},
{
Expand Down
6 changes: 4 additions & 2 deletions benchmarks/networkx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"metadata": {},
"outputs": [],
"source": [
"import time\n",
"\n",
"import networkx as nx\n",
"import xgi\n",
"import time"
"\n",
"import xgi"
]
},
{
Expand Down
106 changes: 75 additions & 31 deletions docs/source/api/recipes/recipes.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/source/api/stats/xgi.stats.DiEdgeStat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
~DiEdgeStat.var
~DiEdgeStat.moment
~DiEdgeStat.argmin
~DiEdgeStat.argmax
~DiEdgeStat.argmax
~DiEdgeStat.argsort
1 change: 1 addition & 0 deletions docs/source/api/stats/xgi.stats.DiNodeStat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
~DiNodeStat.moment
~DiNodeStat.argmin
~DiNodeStat.argmax
~DiNodeStat.argsort
3 changes: 2 additions & 1 deletion docs/source/api/stats/xgi.stats.EdgeStat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
~EdgeStat.var
~EdgeStat.moment
~EdgeStat.argmin
~EdgeStat.argmax
~EdgeStat.argmax
~EdgeStat.argsort
3 changes: 2 additions & 1 deletion docs/source/api/stats/xgi.stats.NodeStat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
~NodeStat.var
~NodeStat.moment
~NodeStat.argmin
~NodeStat.argmax
~NodeStat.argmax
~NodeStat.argsort

0 comments on commit 4667614

Please sign in to comment.