merge getFullGraph() and getReferenceGraph()