general graphs working