Skip to content

Commit

Permalink
new direportview file for organization.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Jun 1, 2023
1 parent 5f6820d commit f39dceb
Show file tree
Hide file tree
Showing 10 changed files with 736 additions and 709 deletions.
1 change: 1 addition & 0 deletions docs/source/api/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ classes package
~xgi.classes.dihypergraph
~xgi.classes.simplicialcomplex
~xgi.classes.reportviews
~xgi.classes.direportviews
~xgi.classes.hypergraphviews
~xgi.classes.function
16 changes: 16 additions & 0 deletions docs/source/api/classes/xgi.classes.direportviews.rst
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
5 changes: 1 addition & 4 deletions docs/source/api/classes/xgi.classes.reportviews.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@

IDView
NodeView
EdgeView
DiIDView
DiNodeView
DiEdgeView
EdgeView
6 changes: 6 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ def test_convert_empty_hypergraph():
assert H.num_edges == 0


def test_convert_empty_dihypergraph():
H = xgi.convert_to_dihypergraph(None)
assert H.num_nodes == 0
assert H.num_edges == 0


def test_convert_simplicial_complex_to_hypergraph():
SC = xgi.SimplicialComplex()
SC.add_simplices_from([[3, 4, 5], [3, 6], [6, 7, 8, 9], [1, 4, 10, 11, 12], [1, 4]])
Expand Down
2 changes: 1 addition & 1 deletion xgi/classes/dihypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ..exception import XGIError
from ..utils import IDDict, update_uid_counter
from .reportviews import DiEdgeView, DiNodeView
from .direportviews import DiEdgeView, DiNodeView

__all__ = ["DiHypergraph"]

Expand Down
Loading

0 comments on commit f39dceb

Please sign in to comment.