Implemented much more efficient subgraph function.
Changes:
lib/graph/graph.py
-subgraph vertex addition iterates over selected instead of self.nodes
-subgraph assumes all inputted vertices are in graph, those that aren’t
will be added as isolates
-subgraph edge addition sped up by utilizing set intersection
Implemented much more efficient subgraph function.
Changes: lib/graph/graph.py -subgraph vertex addition iterates over selected instead of self.nodes -subgraph assumes all inputted vertices are in graph, those that aren’t will be added as isolates -subgraph edge addition sped up by utilizing set intersection