Packages

class DiffGraph extends AnyRef

A lightweight write-only graph used for creation of CPG graph overlays

The graph can store edges to/from nodes that do not exist in the base graph. It doesn't assign ids for these nodes until the diff graph is serialized. Ids of new nodes may collide with ids of nodes in the base graph, which are not sources or destinations of edges of the diff graph. When the CPG loader adds nodes of the overlay, it therefor needs to reassign ids for nodes if they are already used in the original CPG.

TODO Michael: make DiffGraph extend tinkerpop.Graph to simplify and foolproof the model

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DiffGraph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DiffGraph()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addEdge(srcNode: NewNode, dstNode: NewNode, edgeLabel: String, properties: Seq[(String, AnyRef)] = List()): Unit

    Add edge between nodes present in the diff graph

  5. def addEdgeFromOriginal(srcNode: StoredNode, dstNode: NewNode, edgeLabel: String, properties: Seq[(String, AnyRef)] = List()): Unit

    Add edge from a node in the original graph to a node in the diff graph

  6. def addEdgeInOriginal(srcNode: StoredNode, dstNode: StoredNode, edgeLabel: String, properties: Seq[(String, AnyRef)] = List()): Unit

    Add edge between nodes of the original graph

  7. def addEdgeProperty(edge: Edge, key: String, value: AnyRef): ArrayBuffer[EdgeProperty]

    Add a property to an existing edge

  8. def addEdgeToOriginal(srcNode: NewNode, dstNode: StoredNode, edgeLabel: String, properties: Seq[(String, AnyRef)] = List()): Unit

    Add edge from a node in the diff graph to a node in the original graph

  9. def addNode(node: NewNode): Unit
  10. def addNodeProperty(node: StoredNode, key: String, value: AnyRef): ArrayBuffer[NodeProperty]

    Add a property to an existing node

  11. def apply(cpg: Cpg): AppliedDiffGraph
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def edgeProperties: Vector[EdgeProperty]
  15. def edges: Vector[EdgeInDiffGraph]
  16. def edgesFromOriginal: Vector[EdgeFromOriginal]
  17. def edgesInOriginal: Vector[EdgeInOriginal]
  18. def edgesToOriginal: Vector[EdgeToOriginal]
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def mergeFrom(other: DiffGraph): Unit
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def nodeProperties: Vector[NodeProperty]
  28. def nodes: Iterator[NewNode]
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    DiffGraph → AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped