Class DefaultGraph

  • All Implemented Interfaces:
    Graph

    public class DefaultGraph
    extends java.lang.Object
    implements Graph
    • Constructor Detail

      • DefaultGraph

        public DefaultGraph​(java.util.Collection<Vertex> displayVertices,
                            java.util.Collection<Edge> displayEdges)
    • Method Detail

      • getLayout

        public Layout getLayout()
        Specified by:
        getLayout in interface Graph
        Returns:
        The layout which defines x and y positions of the graphs vertices.
      • getDisplayEdges

        public java.util.Collection<Edge> getDisplayEdges()
        Specified by:
        getDisplayEdges in interface Graph
      • getEdgeByKey

        public Edge getEdgeByKey​(java.lang.String edgeKey)
        Specified by:
        getEdgeByKey in interface Graph
      • getVertexByKey

        public Vertex getVertexByKey​(java.lang.String vertexKey)
        Specified by:
        getVertexByKey in interface Graph
      • visit

        public void visit​(GraphVisitor visitor)
                   throws java.lang.Exception
        Specified by:
        visit in interface Graph
        Throws:
        java.lang.Exception
      • setVertexStatus

        public void setVertexStatus​(java.util.Map<? extends VertexRef,​? extends Status> statusForVertices)
      • setEdgeStatus

        public void setEdgeStatus​(java.util.Map<? extends EdgeRef,​? extends Status> edgeStatus)