Hypergraph class.
Hypergraphs are a generalization of graphs where an edge (called
hyperedge) can connect more than two nodes.
|
|
|
add_hyperedge(self,
hyperedge)
Add given hyperedge to the hypergraph. |
|
|
|
add_hyperedges(self,
edgelist)
Add given hyperedges to the hypergraph. |
|
|
|
add_node(self,
node)
Add given node to the hypergraph. |
|
|
|
del_edge(self,
hyperedge)
Delete the given hyperedge. |
|
|
boolean
|
has_node(self,
node)
Return whether the requested node exists. |
|
|
boolean
|
has_edge(self,
hyperedge)
Return whether the requested node exists. |
|
|
boolean
|
has_hyperedge(self,
hyperedge)
Return whether the requested node exists. |
|
|
list
|
|
|
link(self,
node,
hyperedge)
Link given node and hyperedge. |
|
|
list
|
links(self,
obj)
Return all nodes connected by the given hyperedge or all hyperedges
connected to the given hypernode. |
|
|
list
|
nodes(self)
Return node list. |
|
|
|
unlink(self,
node,
hyperedge)
Unlink given node and hyperedge. |
|
|
list
|
edges(self)
Return the hyperedge list. |
|
|
list
|
neighbors(self,
obj)
Return all neighbors adjacent to the given node. |
|
|
|
del_node(self,
node)
Delete a given node from the hypergraph. |
|
|
|
add_edge(self,
hyperedge)
Add given hyperedge to the hypergraph. |
|
|
|
add_edges(self,
edgelist)
Add given hyperedges to the hypergraph. |
|
|
|
|
int
|
rank(self)
Return the rank of the given hypergraph. |
|
|
boolean
|
__eq__(self,
other)
Return whether this hypergraph is equal to another one. |
|
|
boolean
|
__ne__(self,
other)
Return whether this hypergraph is not equal to another one. |
|
|
Inherited from mixins.common.common :
__len__ ,
__str__ ,
add_nodes ,
__getitem__ ,
__iter__ ,
__repr__ ,
add_graph ,
add_spanning_tree ,
complete ,
inverse ,
order ,
reverse
Inherited from mixins.labeling.labeling :
add_edge_attribute ,
add_edge_attributes ,
add_node_attribute ,
del_edge_labeling ,
del_node_labeling ,
edge_attributes ,
edge_label ,
edge_weight ,
get_edge_properties ,
node_attributes ,
set_edge_label ,
set_edge_properties ,
set_edge_weight
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|