Can we add in the doc how to do this? (i.e. by calling withEdges, or automatically if it is created in the ctor)