Uses of Interface
rgu.transport.algorithms.collections.Graph
Packages that use Graph
Package
Description
Contains data structures used by algorithms.
Multimodal geospatial data such as public transport networks.
Implementation of OpenStreetMap (OSM) data loading.
Transport modelling utility classes.
-
Uses of Graph in rgu.transport.algorithms.collections
Classes in rgu.transport.algorithms.collections that implement GraphModifier and TypeClassDescriptionfinal classHashGraph<V,E> A mathematical graph which uses an underling hashed representation of vertices.Methods in rgu.transport.algorithms.collections that return GraphModifier and TypeMethodDescriptionGraph.applyToEdges(Function<Graph.Edge<V, E>, E> edgeMap) Returns a graph which is equal to this graph but with the specified transformation applied to all edges.HashGraph.applyToEdges(Function<Graph.Edge<V, E>, E> edgeMap) Returns a graph which is equal to this graph but with the specified transformation applied to all edges.Graph.breakToSymmetricStructure()Returns a graph which is equal to this graph but symmetric by removing one-way edges.Graph.deleteEdges(Predicate<Graph.Edge<V, E>> delete) Returns a graph which is equal to this graph but without the edges matching the specified predicate.Graph.deleteVertices(Predicate<V> delete) Returns a graph which is equal to this graph but without the vertices matching the specified predicate.Graph.mirrorToSymmetricStructure()Returns a graph which is equal to this graph but symmetric by turning one-way edges into two-way edges of equal value.Graph.preserveEdges(Predicate<Graph.Edge<V, E>> preserve) Returns a graph which is equal to this graph but with only the edges matching the specified predicate.Graph.preserveVertices(Predicate<V> preserve) Returns a graph which is equal to this graph but with only the vertices matching the specified predicate.HashGraph.preserveVertices(Predicate<V> preserve) Returns a graph which is equal to this graph but with only the vertices matching the specified predicate.Graph.reverse()Returns a view of the graph with all edges reversed.HashGraph.reverse()Graph.toSymmetricStructure(Function<Graph.Edge<V, E>, E> edgeMap) Returns a graph which is equal to this graph but symmetric.HashGraph.toSymmetricStructure(Function<Graph.Edge<V, E>, E> edgeMap) Returns a graph which is equal to this graph but symmetric.Methods in rgu.transport.algorithms.collections that return types with arguments of type GraphModifier and TypeMethodDescriptionGraph.symmetricConnectedComponents()Finds the connected components of the graph, assuming that the graph is symmetric in structure.HashGraph.symmetricConnectedComponents()Finds the connected components of the graph, assuming that the graph is symmetric in structure. -
Uses of Graph in rgu.transport.geospatial.multimodal
Methods in rgu.transport.geospatial.multimodal that return GraphModifier and TypeMethodDescriptionTransitNetwork.spatialTemporalGraph()TransitNetwork.spatialTemporalGraph(boolean freeArtificial) TransitNetwork.spatialTemporalGraph(Map<GeoLocation, List<Trip>> extra) TransitNetwork.spatialTemporalGraph(Map<GeoLocation, List<Trip>> extra, boolean freeArtificial) Methods in rgu.transport.geospatial.multimodal with parameters of type GraphModifier and TypeMethodDescriptionTransitNetwork.Builder.addRoadGraph(Graph<GeoLocation, ?> graph, ProgressListener progress) static TransitNetworkNetworkAndRoadJoiner.join(TransitNetwork transitNetwork, Graph<GeoLocation, RoadEdge> roadGraph, Speed drivingSpeed, Speed walkingSpeed, Distance maxDistanceToNearbyRoad, BiConsumer<GeoLocation, GeoLocation> consumerRoadEdge, BiConsumer<GeoLocation, GeoLocation> consumerTransitEdge, BiConsumer<GeoLocation, GeoLocation> consumerArtificialEdge, ProgressListener progress) Joins a transit network to a road network.Constructors in rgu.transport.geospatial.multimodal with parameters of type GraphModifierConstructorDescriptionNetworkJoiner(Graph<GeoLocation, RoadEdge> roadGraph, TwoDTree<GeoLocation> tree, Collection<TransitNetwork> networks, Speed speed, Duration maxTime, Distance maxDistanceToNearbyRoad) Creates a joiner which will connect multiple transit networks to one another. -
Uses of Graph in rgu.transport.geospatial.osm
Methods in rgu.transport.geospatial.osm that return GraphModifier and TypeMethodDescriptionstatic Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph) Adapts the specified graph using the speed defined by the road edges.static Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph, Speed speed) Adapts the specified graph using the specified fixed speed.NoSpeedOSMBuilder.build()SimpleOSMBuilder.build()Methods in rgu.transport.geospatial.osm with parameters of type GraphModifier and TypeMethodDescriptionstatic Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph) Adapts the specified graph using the speed defined by the road edges.static Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph, Speed speed) Adapts the specified graph using the specified fixed speed. -
Uses of Graph in rgu.transport.util
Methods in rgu.transport.util that return GraphModifier and TypeMethodDescriptionPercentSpeedCap.apply()Applies the speed cap to the given graph, returning a new speed-capped graph.PercentSpeedCap.apply(boolean verbose) Applies the speed cap to the given graph, returning a new speed-capped graph.static Graph<GeoLocation, RoadEdge> Reads a road graph from the specified file.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.Methods in rgu.transport.util with parameters of type GraphModifier and TypeMethodDescriptionstatic voidDataIO.writeRoads(File file, Graph<GeoLocation, RoadEdge> graph) Writes the given roads graph to the specified file.Constructors in rgu.transport.util with parameters of type GraphModifierConstructorDescriptionPercentSpeedCap(Graph<GeoLocation, RoadEdge> graph) Creates an instance of percent speed cap.