Interface NESTGraphModifier

All Known Subinterfaces:
NESTAbstractWorkflowModifier, NESTWorkflowModifier
All Known Implementing Classes:
NESTAbstractWorkflowModifierImpl, NESTGraphModifierImpl, NESTWorkflowModifierImpl

public interface NESTGraphModifier
  • Method Details

    • insertNewNode

      <t extends NESTNodeObject> t insertNewNode(String nodeClassName, DataObject semanticDescriptor)
      Parameters:
      nodeClassName - String
      semanticDescriptor - DataObject
      Returns:
      NESTNodeObject
    • insertNewEdge

      <t extends NESTEdgeObject> t insertNewEdge(NESTNodeObject pre, NESTNodeObject post, String edgeClassName, DataObject semanticDescriptor)
      Creates a new edge of the given class with a unique id and inserts it in the nest graph between the given nodes.
      Parameters:
      pre - NESTNodeObject
      post - NESTNodeObject
      edgeClassName - String
      semanticDescriptor - DataObject
      Returns:
      NESTEdgeObject
    • removeEdge

      boolean removeEdge(NESTEdgeObject edge)
      Removes the given edge in the corresponding nest graph
      Parameters:
      edge - The edge to be removed
      Returns:
      boolean whether the edge has been removed
    • removeNode

      boolean removeNode(NESTNodeObject node)
      Removes the given node in the corresponding nest graph
      Parameters:
      node - The node to be removed
      Returns:
      boolean whether the node has been removed
    • extractPartialGraph

      NESTGraphObject extractPartialGraph(Set<NESTNodeObject> nodeSet)
      Parameters:
      nodeSet - set of nodes
      Returns:
      extracted graph