You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the way of accessing nodal data of node 1 is H.nodes.data()[1] or H.nodes(1).data() and a more streamlined call would be preferable. Currently .nodes(id) and .nodes[id] access a node's bipartite neighbors so this probably is an undesirable way of doing it. The problem is that unlike NetworkX, we are using two dictionaries each for nodes and edges: one for nodes and one for attributes. So, I'm not sure what the function would return. I see three options 1) a separate property of Hypergraph called H.node_data or something 2) a flag data where if data=True, then it returns the node attributes and if false, it returns the nodes with the bipartite connections, or 3) return a tuple of the bipartite connections and data respectively. Would appreciate your thoughts!
The text was updated successfully, but these errors were encountered:
I highly prefer a single way of doing things, so I would add to this issue that among the two calls
H.nodes.data()[1]
H.nodes(1).data()
we choose one and remove the other. If we implement something entirely new, then I would suggest keeping the new one and removing these two (if possible).
a flag data where if data=True, then it returns the node attributes and if false, it returns the nodes with the bipartite connections
return a tuple of the bipartite connections and data respectively.
If I understood correctly, these two suggestion propose to return both the neighbors and the data at the same time. I think this may be a bit confusing, so I would vote for suggestion 1).
Currently the way of accessing nodal data of node 1 is
H.nodes.data()[1]
orH.nodes(1).data()
and a more streamlined call would be preferable. Currently.nodes(id)
and.nodes[id]
access a node's bipartite neighbors so this probably is an undesirable way of doing it. The problem is that unlike NetworkX, we are using two dictionaries each for nodes and edges: one for nodes and one for attributes. So, I'm not sure what the function would return. I see three options 1) a separate property ofHypergraph
calledH.node_data
or something 2) a flagdata
where ifdata=True
, then it returns the node attributes and if false, it returns the nodes with the bipartite connections, or 3) return a tuple of the bipartite connections and data respectively. Would appreciate your thoughts!The text was updated successfully, but these errors were encountered: