Add nodes() and edges() to the reference