Interface EdgeReplicationPolicy

All Known Implementing Classes:
LagReplicationPolicy

public interface EdgeReplicationPolicy
Strategy interface: given a seed edge E on graph G, return the full set of mirrored edges that should be kept in sync with E. The set should include E itself if appropriate. Implementations MUST NOT create nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a set of mirrored edges in the given graph that should be kept in sync with the specified edge.
  • Method Details

    • mirrorsFor

      Set<Edge> mirrorsFor(EdgeListGraph g, Edge e)
      Returns a set of mirrored edges in the given graph that should be kept in sync with the specified edge. The returned set may include the specified edge if appropriate.
      Parameters:
      g - the graph containing the edge
      e - the seed edge for which mirrored edges are to be determined
      Returns:
      a set of edges that should be synchronized with the specified edge