add configurable size limits for nodes and edges