Graphs initial implementation