Update operations complexity in adjacency matrix