Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str TryExcept body Expr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num TryExcept body Expr Call AttributeLoad NameLoad attr Num Num handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num TryExcept body Expr Call AttributeLoad NameLoad attr Num Num handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num TryExcept body Expr Call AttributeLoad NameLoad attr Num Num handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareNotIn Num Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Assert CompareEq Num Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareNotIn NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num For NameStore BinOpAdd ListLoad Num NameLoad body Assert CompareIn NameLoad NameLoad Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assert CompareEq Num Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Assert CompareIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Str Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Str TupleLoad Str Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num TupleLoad Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TupleLoad Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Num Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Unittests for graph.classes.hypergraph
 N/A unittest N/A pygraph pygraph.algorithms.generators generate pygraph.classes.exceptions AdditionError pygraph.classes.hypergraph hypergraph N/A testlib copy copy deepcopy test_hypergraph N/A N/A unittest TestCase N/A test_raise_exception_on_duplicate_node_addition N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_node a_node N/A N/A N/A N/A N/A gr add_node a_node N/A N/A N/A AdditionError N/A N/A N/A N/A N/A fail N/A test_raise_exception_on_duplicate_edge_link N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_node a node N/A N/A N/A gr add_hyperedge an edge N/A N/A N/A gr link a node an edge N/A N/A N/A N/A N/A gr link a node an edge N/A N/A N/A AdditionError N/A N/A N/A N/A N/A fail N/A test_raise_exception_on_non_existing_link_removal N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_node 0 N/A N/A N/A gr add_hyperedge 1 N/A N/A N/A N/A N/A gr unlink 0 1 N/A N/A N/A ValueError N/A N/A N/A N/A N/A fail N/A test_raise_exception_when_edge_added_from_non_existing_node N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 N/A N/A N/A N/A N/A gr link 3 0 N/A N/A N/A KeyError N/A N/A N/A N/A N/A fail N/A N/A N/A N/A gr neighbors 0 N/A N/A test_raise_exception_when_edge_added_to_non_existing_node N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 N/A N/A N/A N/A N/A gr link 0 3 N/A N/A N/A KeyError N/A N/A N/A N/A N/A fail N/A N/A N/A N/A gr neighbors 0 N/A N/A test_remove_node N/A N/A self N/A N/A N/A gr N/A N/A testlib new_hypergraph N/A N/A N/A gr del_node 0 N/A N/A N/A self assertTrue N/A 0 N/A N/A gr nodes N/A e N/A N/A gr hyperedges N/A N/A n N/A N/A gr links e N/A N/A N/A N/A self assertTrue N/A n N/A N/A gr nodes N/A test_remove_edge N/A N/A self N/A N/A N/A h N/A hypergraph N/A N/A N/A h add_nodes N/A 1 2 N/A N/A N/A h add_edges N/A a b N/A N/A N/A h link 1 a N/A N/A N/A h link 2 a N/A N/A N/A h link 1 b N/A N/A N/A h link 2 b N/A N/A N/A h del_edge a N/A N/A 1 N/A len N/A N/A h hyperedges N/A gr N/A N/A testlib new_hypergraph N/A edge_no N/A N/A len N/A N/A gr nodes 1 N/A N/A N/A gr del_hyperedge edge_no N/A N/A N/A self assertTrue N/A edge_no N/A N/A gr hyperedges N/A test_remove_link_from_node_to_same_node N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_node 0 N/A N/A N/A gr add_hyperedge 0 N/A N/A N/A gr link 0 0 N/A N/A N/A gr unlink 0 0 N/A test_remove_node_with_edge_to_itself N/A N/A self N/A N/A N/A gr N/A hypergraph N/A N/A N/A gr add_node 0 N/A N/A N/A gr add_hyperedge 0 N/A N/A N/A gr link 0 0 N/A N/A N/A gr del_node 0 N/A test_check_add_node_s N/A N/A self N/A N/A N/A gr N/A hypergraph N/A nodes N/A 1 2 3 N/A N/A N/A gr add_nodes nodes N/A N/A N/A gr add_node 0 N/A n N/A N/A 0 nodes N/A N/A N/A n gr N/A N/A N/A gr has_node n N/A test_rank N/A N/A self N/A N/A N/A gr N/A N/A testlib new_uniform_hypergraph 3 N/A N/A 3 N/A N/A gr rank N/A gr N/A N/A testlib new_hypergraph N/A num N/A max N/A N/A len N/A N/A gr links e N/A e N/A N/A gr hyperedges N/A N/A num N/A N/A gr rank N/A test_repr N/A N/A self N/A N/A N/A 
        Validate the repr string
         N/A gr N/A N/A testlib new_hypergraph N/A gr_repr N/A repr gr N/A N/A isinstance gr_repr str N/A N/A N/A N/A gr __class__ __name__ gr_repr N/A test_order_len_equivlance N/A N/A self N/A N/A N/A 
        Verify the behavior of G.order()
         N/A gr N/A N/A testlib new_hypergraph N/A N/A N/A len gr N/A N/A gr order N/A N/A N/A N/A gr order N/A len N/A gr node_links N/A test_hypergraph_equality_nodes N/A N/A self N/A N/A N/A 
        Hyperaph equality test. This one checks node equality. 
         N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 2 3 4 5 N/A gr2 N/A deepcopy gr N/A gr3 N/A deepcopy gr N/A N/A N/A gr3 del_node 5 N/A gr4 N/A deepcopy gr N/A N/A N/A gr4 add_node 6 N/A N/A N/A gr4 del_node 0 N/A N/A gr gr2 N/A N/A gr2 gr N/A N/A gr gr3 N/A N/A gr3 gr N/A N/A gr gr4 N/A N/A gr4 gr N/A test_hypergraph_equality_edges N/A N/A self N/A N/A N/A 
        Hyperaph equality test. This one checks edge equality. 
         N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 2 3 N/A N/A N/A gr add_edge e1 N/A N/A N/A gr add_edge e2 N/A N/A N/A gr link 0 e1 N/A N/A N/A gr link 1 e1 N/A N/A N/A gr link 1 e2 N/A N/A N/A gr link 2 e2 N/A gr2 N/A deepcopy gr N/A gr3 N/A deepcopy gr N/A N/A N/A gr3 del_edge e2 N/A gr4 N/A deepcopy gr N/A N/A N/A gr4 unlink 1 e2 N/A N/A gr gr2 N/A N/A gr2 gr N/A N/A gr gr3 N/A N/A gr3 gr N/A N/A gr gr4 N/A N/A gr4 gr N/A test_hypergraph_equality_labels N/A N/A self N/A N/A N/A 
        Hyperaph equality test. This one checks edge equality. 
         N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 2 3 N/A N/A N/A gr add_edge e1 N/A N/A N/A gr add_edge e2 N/A N/A N/A gr add_edge e3 N/A N/A N/A gr set_edge_label e1 l1 N/A N/A N/A gr set_edge_label e2 l2 N/A gr2 N/A deepcopy gr N/A gr3 N/A deepcopy gr N/A N/A N/A gr3 set_edge_label e3 l3 N/A gr4 N/A deepcopy gr N/A N/A N/A gr4 set_edge_label e1 lx N/A gr5 N/A deepcopy gr N/A N/A N/A gr5 del_edge e1 N/A N/A N/A gr5 add_edge e1 N/A N/A gr gr2 N/A N/A gr2 gr N/A N/A gr gr3 N/A N/A gr3 gr N/A N/A gr gr4 N/A N/A gr4 gr N/A N/A gr gr5 N/A N/A gr5 gr N/A test_hypergraph_equality_attributes N/A N/A self N/A N/A N/A 
        Hyperaph equality test. This one checks edge equality. 
         N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 N/A N/A N/A gr add_edge e1 N/A N/A N/A gr add_edge e2 N/A N/A N/A gr add_node_attribute 0 N/A a 0 N/A N/A N/A gr add_edge_attribute e1 N/A b 1 N/A gr2 N/A deepcopy gr N/A gr3 N/A deepcopy gr N/A N/A N/A gr3 add_node_attribute 0 N/A x y N/A gr4 N/A deepcopy gr N/A N/A N/A gr4 add_edge_attribute e1 N/A u v N/A gr5 N/A deepcopy gr N/A N/A N/A gr5 del_edge e1 N/A N/A N/A gr5 add_edge e1 N/A gr6 N/A deepcopy gr N/A N/A N/A gr6 del_node 0 N/A N/A N/A gr6 add_node 0 N/A N/A gr gr2 N/A N/A gr2 gr N/A N/A gr gr3 N/A N/A gr3 gr N/A N/A gr gr4 N/A N/A gr4 gr N/A N/A gr gr5 N/A N/A gr5 gr N/A N/A gr gr6 N/A N/A gr6 gr N/A test_hypergraph_equality_weight N/A N/A self N/A N/A N/A 
        Hyperaph equality test. This one checks edge equality. 
         N/A gr N/A hypergraph N/A N/A N/A gr add_nodes N/A 0 1 2 3 N/A N/A N/A gr add_edge e1 N/A N/A N/A gr add_edge e2 N/A N/A N/A gr add_edge e3 N/A N/A N/A gr set_edge_weight e1 2 N/A gr2 N/A deepcopy gr N/A gr3 N/A deepcopy gr N/A N/A N/A gr3 set_edge_weight e3 2 N/A gr4 N/A deepcopy gr N/A N/A N/A gr4 set_edge_weight e1 1 N/A N/A gr gr2 N/A N/A gr2 gr N/A N/A gr gr3 N/A N/A gr3 gr N/A N/A gr gr4 N/A N/A gr4 gr N/A test_hypergraph_link_unlink_link N/A N/A self N/A N/A N/A 
        Hypergraph link-unlink-link test. It makes sure that unlink cleans 
        everything properly. No AdditionError should occur.
         N/A h N/A hypergraph N/A N/A N/A h add_nodes N/A 1 2 N/A N/A N/A h add_edges N/A e1 N/A N/A N/A h link 1 e1 N/A N/A N/A h unlink 1 e1 N/A N/A N/A h link 1 e1 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main