Skip to content

Commit

Permalink
docs: added warning and updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Jun 5, 2023
1 parent 62b38b5 commit 5e2b6f6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 6 additions & 1 deletion xgi/classes/dihypergraph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Base class for directed hypergraphs.
**This is currently an experimental feature.**
.. warning::
This is currently an experimental feature.
"""
from collections.abc import Hashable, Iterable
from copy import copy, deepcopy
Expand All @@ -17,6 +19,9 @@
class DiHypergraph:
r"""A dihypergraph is a collection of directed interactions of arbitrary size.
.. warning::
This is currently an experimental feature.
More formally, a directed hypergraph (dihypergraph) is a pair :math:`(V, E)`,
where :math:`V` is a set of elements called *nodes* or *vertices*,
and :math:`E` is the set of directed hyperedges.
Expand Down
14 changes: 14 additions & 0 deletions xgi/classes/direportviews.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""View classes for dihypergraphs.
A View class allows for inspection and querying of an underlying object but does not
allow modification. This module provides View classes for nodes and edges of a dihypergraph.
Views are automatically updaed when the dihypergraph changes.
"""

from collections.abc import Mapping, Set

from ..exception import IDNotFound, XGIError
Expand Down Expand Up @@ -373,6 +381,9 @@ def _from_iterable(self, it):
class DiNodeView(DiIDView):
"""An DiIDView that keeps track of node ids.
.. warning::
This is currently an experimental feature.
Parameters
----------
hypergraph : DiHypergraph
Expand Down Expand Up @@ -468,6 +479,9 @@ def memberships(self, n=None):
class DiEdgeView(DiIDView):
"""An DiIDView that keeps track of edge ids.
.. warning::
This is currently an experimental feature.
Parameters
----------
hypergraph : DiHypergraph
Expand Down
4 changes: 2 additions & 2 deletions xgi/classes/reportviews.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""View classes for hypergraphs.
A View class allows for inspection and querying of an underlying object but does not
allow modification. This module provides View classes for nodes, edges, degree, and
edge size of a hypergraph. Views are automatically updaed when the hypergraph changes.
allow modification. This module provides View classes for nodes and edges of a hypergraph.
Views are automatically updaed when the hypergraph changes.
"""

Expand Down

0 comments on commit 5e2b6f6

Please sign in to comment.