For most network generators it is sufficient to use the MGeoRsNetworkEdgeModifier:
MoreNetworkModifierthis.edgeModifier = new MGeoRsNetworkEdgeModifier<AgentType, EdgeType>(this.edgeFac, geography, geoFactory);
The MGeographyWrapper provides facilities to query a list of agents withing the surroundings of a given agent:
MGeographyWrapper<Object> geoWrapper = new MGeographyWrapper<Object>(geography); AgentType focalAgent; // assign agent double radius = 10.0; // in metres Class<? extends AgentType> requestClass = focalAgent.getClass(); // in case there is only one agent class Class<? extends AgentType> requestClass = focalAgent.getClass().getSuperclass(); // in case agents of a common superclass shall be retrieved List<AgentType> neighbourslist = geoWrapper.<AgentType> getSurroundingAgents(focalAgent, radius, requestClass);