Class EditOperation


  • public class EditOperation
    extends java.lang.Object
    An edit operation between two graphs can be one of six types: insert vertex, delete vertex, change vertex, insert edge, delete edge, change edge
    • Method Detail

      • deleteVertex

        public static EditOperation deleteVertex​(java.lang.String description,
                                                 Vertex sourceVertex,
                                                 Vertex targetVertex)
      • insertVertex

        public static EditOperation insertVertex​(java.lang.String description,
                                                 Vertex sourceVertex,
                                                 Vertex targetVertex)
      • changeVertex

        public static EditOperation changeVertex​(java.lang.String description,
                                                 Vertex sourceVertex,
                                                 Vertex targetVertex)
      • deleteEdge

        public static EditOperation deleteEdge​(java.lang.String description,
                                               Edge sourceEdge)
      • insertEdge

        public static EditOperation insertEdge​(java.lang.String description,
                                               Edge targetEdge)
      • changeEdge

        public static EditOperation changeEdge​(java.lang.String description,
                                               Edge sourceEdge,
                                               Edge targetEdge)
      • getSourceVertex

        public Vertex getSourceVertex()
      • getTargetVertex

        public Vertex getTargetVertex()
      • getSourceEdge

        public Edge getSourceEdge()
      • getTargetEdge

        public Edge getTargetEdge()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object