build from json

removed default class creation, will use json
working on graph constructor