Enable querying for edges. Part of #5