forked from xgi-org/xgi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor core interface (xgi-org#41)
* fix: node attributes were not being created correctly * chore: whitespace changes * refactor: H[x] now accesses hypergraph attributes * fix: add a way to access hypergraph attributes. fix: a broken test * refactor: now use members to access the nodes of an edge * refactor: use *_attr rather than *_attrs * refactor: use __getitem__ to access attributes, not members * docs: update docs * feat: add H.nodes.memberships, which is the same as H.nodes.members, and add a test for it * Updates * Created a base class for the Node/Edge Views and Degree/Edge Size Views. * Removed the NodeDataView and EdgeDataView. * All unit tests pass * Removed all old references to `.node[id]` and `.edge[id]` * updated list of developers * update hypergraph getitem method * Fixed tests * refactor: use memberships rather than memberships * fix: members associated with edges, memberships associated with nodes * fix: specified that incorrect/missing IDs are KeyError exceptions * docs: added documentation and removed old API references * fix: added correct handling for calling as a slice * tests: added tests for missing or slice ids * BREAKING CHANGE: removed the name attribute and fixed methods and tests to match. Co-authored-by: nwlandry <[email protected]>
- Loading branch information
Showing
14 changed files
with
319 additions
and
1,074 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
XGI is distributed with the 3-clause BSD license. | ||
|
||
Copyright (C) 2021, Hypergraph Developers | ||
Copyright (C) 2021, XGI Developers | ||
Nicholas Landry <[email protected]> | ||
Leo Torres <[email protected]> | ||
Iacopo Iacopini <[email protected]> | ||
Maxime Lucas <[email protected]> | ||
Giovanni Petri <[email protected]> | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
|
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
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
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
Oops, something went wrong.