dynamic graph (not finished)