Friday, August 04, 2006

A complete bipartite graph


\foreach \x in {0,1,2}
\foreach \y in {0,1,2}
{\draw (\y,0) -- (\x,1);}
\foreach \x in {0,1,2}{
\draw (\x,0) circle (2pt);
\draw (\x,1) circle (2pt);}


Rafael said...

Miguel PizaƱa sent the following comment, which due to some ignorance of mine on the way Blogger behaves, did not appear

Oh!!! So (2:3) is in polar coordinates but (2,3) is in cartesian coordinates! That's cool.

Yes! However, for some reason one has to write a unit of length in polar coordinates, that is (2:3cm), and not just (2:3). In Cartesian coordinates, the unit of length is cm by default

Al Gerheim said...

I've been trying for 2 days to get these files to work. I get a pgf error "shape H not found". I've been unable to diagnose the problem, except that it takes "H" from the first edge definition.

Please respond to