[FIX] graph.py: correct Node() creation.

Fixes #3730