Fixed the name/label set issue in `PygraphvizFactory` (similar to 5d2cbc2f53eaafb749921d5255539d8b8d88ac11 )