Skip to content

Commit

Permalink
clarified and fixed typo in GraphInstance docstring (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalosak committed Oct 4, 2022
1 parent 4544bb9 commit 2ac7b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym/spaces/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class GraphInstance(NamedTuple):
"""A Graph space instance.
* nodes (np.ndarray): an (n x ...) sized array representing the features for n nodes, (...) must adhere to the shape of the node space.
* edges (Optional[np.ndarray]): an (m x ...) sized array representing the features for m nodes, (...) must adhere to the shape of the edge space.
* edge_links (Optional[np.ndarray]): an (m x 2) sized array of ints representing the two nodes that each edge connects.
* edges (Optional[np.ndarray]): an (m x ...) sized array representing the features for m edges, (...) must adhere to the shape of the edge space.
* edge_links (Optional[np.ndarray]): an (m x 2) sized array of ints representing the indices of the two nodes that each edge connects.
"""

nodes: np.ndarray
Expand Down

0 comments on commit 2ac7b1c

Please sign in to comment.