9.5 An Algorithm for Graph Sketching