What's changed
-
Added core module including
DirectedGraphandUndirectedGraphclasses with
-_nodes_validationand_edges_validationmethods
-add_node,del_node,has_nodeandclear_nodesmethods
-add_edge,del_edge,has_edgeandclear_edgesmethods
-clear_degree,clear_neighbors,calc_degree,find_loopsandfind_neighborsmethods
-describe,check_type,check_is_pseudo,check_is_multiandcheck_is_completemethods
-get_subgraphmethod
-__repr__,__eq__,__ne__and__len__methods -
Added exceptions including
- 12 validation exceptions
- 3 exceptions if a non-existent object is requested
- 2 exceptions if attempt is made to create an existing object
- 2 exceptions if trying to delete basic elements in graph
- 1 exception if wrong file extension is choised
-
Added tools module with
export_graph_to_jsonandimport_graph_from_jsonfunctions -
Added documentation including
- README.md
- graph.md
- import_export.md
Full changelog: https://github.com/ekertn7/ConnectionZ/commits/1.0.0