implement smart view for 2-vertex graph