fixed `<<' operator for graph and started testing graph