The use of "the" isn't the weird part. The weird part is that the article attempts to draw a contrast between "pentagons" and "five-sided polygons", which are exactly the same thing.
I think what the poster above is saying is that by saying "the pentagon" the author is referring to the (unique) 5 sided regular polygon, as opposed to some random, potentially non-regular 5 sided polygon.
The pointlessness in the distinction is that we're talking about graphs defined by their vertices and edges, not how they're drawn. (Planar graphs about how they 'could' be drawn not withstanding.)