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
it's often useful to have a list of edges that does not contain nodes.
Add a function to get that.
Should the function output a new external list, of remove singletons from the edges stored internally in the HyperGraph?
The text was updated successfully, but these errors were encountered:
H.edges(order=1)
# -> EdgeView([[0], [3], ...])H.singleton_edges()
# -> same as aboveH.remove_singletons()
# -> modifies H and returns None
Similarly, we should do something similar for removing all connected components other than the largest one:
H.connected_components()
# -> list of EdgeView objectsH.connected_components(k)
# -> list of EdgeView objects containing only the k largest componentsH.largest_component()
# -> same as H.connected_components(1)H.remove_components(k=1)
# -> modifies H by removing all but the k (default k=1) largest components and returns None
Currently, edges contain singletons (nodes) :
it's often useful to have a list of edges that does not contain nodes.
Add a function to get that.
Should the function output a new external list, of remove singletons from the edges stored internally in the HyperGraph?
The text was updated successfully, but these errors were encountered: