Class Graph


  • public class Graph
    extends Object
    Valued and oriented graph. A spatial index is defined for each of the graph element types: nodes, edges and faces.
    Author:
    julien Gaffuri
    • Constructor Detail

      • Graph

        public Graph()
    • Method Detail

      • getNodes

        public Set<Node> getNodes()
      • getEdges

        public Set<Edge> getEdges()
      • getFaces

        public Set<Face> getFaces()
      • buildNode

        public Node buildNode​(org.locationtech.jts.geom.Coordinate c)
      • buildEdge

        public Edge buildEdge​(Node n1,
                              Node n2,
                              org.locationtech.jts.geom.Coordinate[] coords)
      • buildFace

        public Face buildFace​(Set<Edge> edges)
      • remove

        public void remove​(Node n)
      • remove

        public void remove​(Edge e)
      • remove

        public void remove​(Face f)
      • insertInSpatialIndex

        public void insertInSpatialIndex​(Node n)
      • removeFromSpatialIndex

        public boolean removeFromSpatialIndex​(Node n)
      • getNodesAt

        public Collection<Node> getNodesAt​(org.locationtech.jts.geom.Envelope env)
      • getNodeAt

        public Node getNodeAt​(org.locationtech.jts.geom.Coordinate c)
      • getCreateNodeAt

        public Node getCreateNodeAt​(org.locationtech.jts.geom.Coordinate c)
      • insertInSpatialIndex

        public void insertInSpatialIndex​(Edge e)
      • removeFromSpatialIndex

        public boolean removeFromSpatialIndex​(Edge e)
      • getEdgesAt

        public Collection<Edge> getEdgesAt​(org.locationtech.jts.geom.Envelope env)
      • insertInSpatialIndex

        public void insertInSpatialIndex​(Face f)
      • removeFromSpatialIndex

        public boolean removeFromSpatialIndex​(Face f)
      • getFacesAt

        public Collection<Face> getFacesAt​(org.locationtech.jts.geom.Envelope env)
      • clear

        public void clear()