graph add node + tests