1/8
quizley
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
edge query , are the two nodes connected for adjacency list
0(|v|)
edge query , are the two nodes connected for adjacency matrices
o(1)
inserting a node :adding a new node to the graph AL
O(1)
inserting node: add a node to the graph AM
O(|v|²)
removing a node AL
O(|E|)
removing a node AM
O(|V|²)
inserting an edge O(1) AM
O(1)
Removing an edge AL
O(|V|)
Removing an edge AM
O(|1)