A graph state has computational-basis expansion
For the path with edges and ,
For the triangle , the extra edge changes the phase whenever , giving