document written for querying - generalize for topologies