-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * update docstrings * moved read-only test * added dihypergraph tutorial * remove unused convert * updated the node and edge stats * style: format with black * added ability to convert from dihypergraphs to hypergraphs * Update Tutorial 8 - Directed Hypergraphs.ipynb * added test for convert * added source and target methods * response 1 to review * added first round of tests * tests for stats * new direportview file for organization. * Update dihypergraph.py * docs: fixed sphinx errors * docs: added warning and updated docs
- Loading branch information
Showing
45 changed files
with
4,487 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
docs/source/api/classes/xgi.classes.dihypergraph.DiHypergraph.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
xgi.classes.dihypergraph.DiHypergraph | ||
===================================== | ||
|
||
.. currentmodule:: xgi.classes.dihypergraph | ||
|
||
.. autoclass:: DiHypergraph | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DiHypergraph.edges | ||
~DiHypergraph.nodes | ||
~DiHypergraph.num_edges | ||
~DiHypergraph.num_nodes | ||
|
||
|
||
.. rubric:: Methods that modify the structure | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiHypergraph.add_node | ||
~DiHypergraph.add_edge | ||
~DiHypergraph.add_nodes_from | ||
~DiHypergraph.add_edges_from | ||
~DiHypergraph.remove_node | ||
~DiHypergraph.remove_edge | ||
~DiHypergraph.remove_nodes_from | ||
~DiHypergraph.remove_edges_from | ||
~DiHypergraph.clear | ||
~DiHypergraph.copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
xgi.classes.dihypergraph | ||
======================== | ||
|
||
.. currentmodule:: xgi.classes.dihypergraph | ||
|
||
.. automodule:: xgi.classes.dihypergraph | ||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
:nosignatures: | ||
|
||
DiHypergraph |
28 changes: 28 additions & 0 deletions
28
docs/source/api/classes/xgi.classes.direportviews.DiEdgeView.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
xgi.classes.direportviews.DiEdgeView | ||
==================================== | ||
|
||
.. currentmodule:: xgi.classes.direportviews | ||
|
||
.. autoclass:: DiEdgeView | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DiEdgeView.ids | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiEdgeView.members | ||
~DiEdgeView.dimembers | ||
~DiEdgeView.head | ||
~DiEdgeView.tail | ||
~DiIDView.filterby | ||
~DiIDView.filterby_attr |
18 changes: 18 additions & 0 deletions
18
docs/source/api/classes/xgi.classes.direportviews.DiIDView.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
xgi.classes.direportviews.DiIDView | ||
================================== | ||
|
||
.. currentmodule:: xgi.classes.direportviews | ||
|
||
.. autoclass:: DiIDView | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiIDView.from_view | ||
~DiIDView.filterby | ||
~DiIDView.filterby_attr |
26 changes: 26 additions & 0 deletions
26
docs/source/api/classes/xgi.classes.direportviews.DiNodeView.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
xgi.classes.direportviews.DiNodeView | ||
==================================== | ||
|
||
.. currentmodule:: xgi.classes.direportviews | ||
|
||
.. autoclass:: DiNodeView | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DiNodeView.ids | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiNodeView.memberships | ||
~DiNodeView.dimemberships | ||
~DiIDView.filterby | ||
~DiIDView.filterby_attr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
xgi.classes.direportviews | ||
========================= | ||
|
||
.. currentmodule:: xgi.classes.direportviews | ||
|
||
.. automodule:: xgi.classes.direportviews | ||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
:nosignatures: | ||
|
||
DiIDView | ||
DiNodeView | ||
DiEdgeView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ xgi.classes.reportviews.EdgeView | |
|
||
.. autosummary:: | ||
|
||
~NodeView.ids | ||
~EdgeView.ids | ||
|
||
|
||
.. rubric:: Methods | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
xgi.stats.DiEdgeStat | ||
==================== | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autoclass:: DiEdgeStat | ||
:show-inheritance: | ||
:members: | ||
:inherited-members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DiEdgeStat.name | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiEdgeStat.asdict | ||
~DiEdgeStat.aslist | ||
~DiEdgeStat.asnumpy | ||
~DiEdgeStat.aspandas | ||
~DiEdgeStat.max | ||
~DiEdgeStat.mean | ||
~DiEdgeStat.median | ||
~DiEdgeStat.min | ||
~DiEdgeStat.std | ||
~DiEdgeStat.var | ||
~DiEdgeStat.moment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
xgi.stats.DiNodeStat | ||
==================== | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autoclass:: DiNodeStat | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~DiNodeStat.name | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~DiNodeStat.asdict | ||
~DiNodeStat.aslist | ||
~DiNodeStat.asnumpy | ||
~DiNodeStat.aspandas | ||
~DiNodeStat.max | ||
~DiNodeStat.mean | ||
~DiNodeStat.median | ||
~DiNodeStat.min | ||
~DiNodeStat.std | ||
~DiNodeStat.var | ||
~DiNodeStat.moment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
xgi.stats.MultiDiEdgeStat | ||
========================= | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autoclass:: MultiDiEdgeStat | ||
:show-inheritance: | ||
:members: | ||
:inherited-members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~MultiDiEdgeStat.name | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~MultiDiEdgeStat.asdict | ||
~MultiDiEdgeStat.aslist | ||
~MultiDiEdgeStat.asnumpy | ||
~MultiDiEdgeStat.aspandas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
xgi.stats.MultiDiNodeStat | ||
========================= | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autoclass:: MultiDiNodeStat | ||
:show-inheritance: | ||
:members: | ||
:inherited-members: | ||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~MultiDiNodeStat.name | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~MultiDiNodeStat.asdict | ||
~MultiDiNodeStat.aslist | ||
~MultiDiNodeStat.asnumpy | ||
~MultiDiNodeStat.aspandas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
xgi.stats.diedgestat\_func | ||
========================== | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autofunction:: diedgestat_func |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
xgi.stats.diedgestats | ||
===================== | ||
|
||
.. currentmodule:: xgi.stats.diedgestats | ||
|
||
.. automodule:: xgi.stats.diedgestats | ||
|
||
.. rubric:: Functions | ||
|
||
.. autofunction:: attrs | ||
.. autofunction:: order | ||
.. autofunction:: size | ||
.. autofunction:: head_order | ||
.. autofunction:: head_size | ||
.. autofunction:: tail_order | ||
.. autofunction:: tail_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
xgi.stats.dinodestat\_func | ||
========================== | ||
|
||
.. currentmodule:: xgi.stats | ||
|
||
.. autofunction:: dinodestat_func |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
xgi.stats.dinodestats | ||
===================== | ||
|
||
.. currentmodule:: xgi.stats.dinodestats | ||
|
||
.. automodule:: xgi.stats.dinodestats | ||
|
||
.. rubric:: Functions | ||
|
||
.. autofunction:: attrs | ||
.. autofunction:: degree | ||
.. autofunction:: in_degree | ||
.. autofunction:: out_degree |
Oops, something went wrong.