Constructor rebuild, now able to enter graph type.
Still need to implement graph types according to spec.