extension/src/main/java/org/justinnk/masonssa/extension/ssa/EdgeDependencyGraph.java
/**
   * Remove an action from all dependency relations.
   *
   * @param action The action that should be removed.
   */
Remove an action from all dependency relations.
@param action The action that should be removed.
Remove an action from all dependency relations . @param action The action that should be removed .
public void RemoveDependencies(Action action) {
    /* Get the owners of the edges that this action depends on */
    HashMap<Network, HashSet<Edge>> owners = dependsOn.get(action);
    if (owners != null) {
      for (Network owner : owners.keySet()) {
        /* Get the edges this action depends on */
        HashSet<Edge> edges = dependsOn.get(action).get(owner);
        if (edges != null) {
          /* Remove the action from the edge dependency */
          for (Edge edge : edges) {
            dependents.get(owner).get(edge).remove(action);
          }
        }
      }
    }
    /* Also remove the action from dependsOn */
    dependsOn.remove(action);
  }
public void RemoveDependencies ( Action action ) { /* Get the owners of the edges that this action depends on */ HashMap < Network , HashSet < Edge > > owners = dependsOn . get ( action ) ; if ( owners != null ) { for ( Network owner : owners . keySet ( ) ) { /* Get the edges this action depends on */ HashSet < Edge > edges = dependsOn . get ( action ) . get ( owner ) ; if ( edges != null ) { /* Remove the action from the edge dependency */ for ( Edge edge : edges ) { dependents . get ( owner ) . get ( edge ) . remove ( action ) ; } } } } /* Also remove the action from dependsOn */ dependsOn . remove ( action ) ; }
Remove an action from all dependency relations.
Remove an action from all dependency relations .