Graph (first version)